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:
Cloud Wu
2022-09-03 22:03:11 +08:00
parent 6dda5f7f98
commit 800a3376d6
10 changed files with 18 additions and 30 deletions

View File

@@ -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);
}