add api skynet_socket_pause

This commit is contained in:
Cloud Wu
2020-08-10 10:57:59 +08:00
parent c35c8f173b
commit a4dc6b9094
6 changed files with 64 additions and 12 deletions

View File

@@ -162,6 +162,13 @@ skynet_socket_start(struct skynet_context *ctx, int id) {
socket_server_start(SOCKET_SERVER, source, id);
}
void
skynet_socket_pause(struct skynet_context *ctx, int id) {
uint32_t source = skynet_context_handle(ctx);
socket_server_pause(SOCKET_SERVER, source, id);
}
void
skynet_socket_nodelay(struct skynet_context *ctx, int id) {
socket_server_nodelay(SOCKET_SERVER, id);