socket.shutdown abandon unsend buffer now, see issue #371

This commit is contained in:
Cloud Wu
2015-11-11 10:44:50 +08:00
parent c28ae25c70
commit 7521fe0530
6 changed files with 39 additions and 6 deletions

View File

@@ -26,6 +26,7 @@ int socket_server_poll(struct socket_server *, struct socket_message *result, in
void socket_server_exit(struct socket_server *);
void socket_server_close(struct socket_server *, uintptr_t opaque, int id);
void socket_server_shutdown(struct socket_server *, uintptr_t opaque, int id);
void socket_server_start(struct socket_server *, uintptr_t opaque, int id);
// return -1 when error