new socket lib

This commit is contained in:
云风
2013-08-22 17:28:26 +08:00
parent 83db25fe92
commit 06ee4297df
8 changed files with 718 additions and 461 deletions

View File

@@ -128,3 +128,9 @@ skynet_socket_close(struct skynet_context *ctx, int id) {
uint32_t source = skynet_context_handle(ctx);
socket_server_close(SOCKET_SERVER, source, id);
}
void
skynet_socket_accept(struct skynet_context *ctx, int id) {
uint32_t source = skynet_context_handle(ctx);
socket_server_accept(SOCKET_SERVER, source, id);
}