mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
new socket lib
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user