udp socket bugfix (#1640)

Co-authored-by: chenkete <kete.chen@centurygame.com>
This commit is contained in:
CKT
2022-09-03 20:51:19 +08:00
committed by GitHub
parent 01b5d67b11
commit 2a8c095e38
5 changed files with 7 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ void skynet_socket_start(struct skynet_context *ctx, int id);
void skynet_socket_pause(struct skynet_context *ctx, int id);
void skynet_socket_nodelay(struct skynet_context *ctx, int id);
int skynet_socket_udp(struct skynet_context *ctx, const char * addr, int port);
int skynet_socket_udp(struct skynet_context *ctx, const char * addr, int *port);
int skynet_socket_udp_connect(struct skynet_context *ctx, int id, const char * addr, int port);
int skynet_socket_udp_sendbuffer(struct skynet_context *ctx, const char * address, struct socket_sendbuffer *buffer);
const char * skynet_socket_udp_address(struct skynet_socket_message *, int *addrsz);