mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
Revert "Update the return values of socket.listen, also return the real port bind to zero (#1638)"
This reverts commit c1eeba215d.
This commit is contained in:
@@ -127,7 +127,7 @@ skynet_socket_sendbuffer_lowpriority(struct skynet_context *ctx, struct socket_s
|
||||
}
|
||||
|
||||
int
|
||||
skynet_socket_listen(struct skynet_context *ctx, const char *host, int *port, int backlog) {
|
||||
skynet_socket_listen(struct skynet_context *ctx, const char *host, int port, int backlog) {
|
||||
uint32_t source = skynet_context_handle(ctx);
|
||||
return socket_server_listen(SOCKET_SERVER, source, host, port, backlog);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user