wangzhengquan
2021-01-18 01e202b60cc8aceb65fd6c82949e2a2b08142f8c
src/socket/shm_stream_mod_socket.h
@@ -2,9 +2,7 @@
#define __shm_stream_mod_socket_SOCKET_H__
#ifdef __cplusplus
extern "C" {
#endif
enum socket_mod_t
{
@@ -33,7 +31,7 @@
 * 绑定端口到socket, 如果不绑定则系统自动分配一个
 * @return 0 成功, 其他值 失败的错误码
*/
int shm_stream_mod_socket_bind(void * _socket, int port);
int shm_stream_mod_socket_bind(void * _socket, int key);
 
/**
@@ -45,7 +43,7 @@
/**
 * 客户端发起连接请求
 */
int shm_stream_mod_socket_connect(void * _socket, int port);
int shm_stream_mod_socket_connect(void * _socket, int key);
/**
 * 发送信息
@@ -68,10 +66,8 @@
/**
 * 获取soket端口号
 */
int shm_stream_mod_socket_get_port(void * _socket);
int shm_stream_mod_socket_get_key(void * _socket);
#ifdef __cplusplus
}
#endif
#endif