wangzhengquan
2020-11-27 b5fe7f9a3bcc2f20d127f9081c1cf132091f6a57
src/socket/shm_mod_socket.h
@@ -62,7 +62,6 @@
   ShmModSocket();
   ~ShmModSocket();
    
   /**
    * 绑定端口到socket, 如果不绑定则系统自动分配一个
    * @return 0 成功, 其他值 失败的错误码
@@ -104,6 +103,12 @@
   // 超时返回。 @sec 秒 , @nsec 纳秒
   int sendandrecv_timeout(const void *send_buf, const int send_size, const int port, void **recv_buf, int *recv_size,  struct timespec *timeout) ;
   int sendandrecv_nowait(const void *send_buf, const int send_size, const int port, void **recv_buf, int *recv_size) ;
   int sendandrecv_unsafe(const void *send_buf, const int send_size, const int port, void **recv_buf, int *recv_size) ;
   // 超时返回。 @sec 秒 , @nsec 纳秒
   int sendandrecv_unsafe_timeout(const void *send_buf, const int send_size, const int port, void **recv_buf, int *recv_size,  struct timespec *timeout) ;
   int sendandrecv_unsafe_nowait(const void *send_buf, const int send_size, const int port, void **recv_buf, int *recv_size) ;
   /**
@@ -149,9 +154,9 @@
   /**
    * 获取soket端口号
    * 获取soket key
    */
   int get_port() ;
   int get_key() ;
};