wangzhengquan
2021-01-07 14f5cae9c36cf9c91434fcde684d54e8a56c8f84
src/socket/net_mod_socket_wrapper.h
@@ -39,12 +39,12 @@
int net_mod_socket_force_bind(void * _socket, int key);
/**
 * 发送信息
 * 发送信息,发送完成才返回
 * @key 发送给谁
 * @return 0 成功, 其他值 失败的错误码
 */
int net_mod_socket_sendto(void *_socket, const void *buf, const int size, const int key);
// 发送信息超时返回。 @sec 秒 , @nsec 纳秒
// 发送信息, 超时返回。 @sec 秒 , @nsec 纳秒
int net_mod_socket_sendto_timeout(void *_socket, const void *buf, const int size, const int key, int sec, int nsec);
// 发送信息立刻返回。
int net_mod_socket_sendto_nowait(void *_socket, const void *buf, const int size, const int key);