wangzhengquan
2021-01-22 91ea20d03ebb5a8d20150d3ecc28a13c51ce93f1
src/socket/shm_mod_socket.cpp
@@ -69,12 +69,12 @@
// 接受信息超时返回。 @sec 秒 , @nsec 纳秒
int ShmModSocket::recvfrom_timeout( void **buf, int *size, int *key, struct timespec *timeout) {
   int rv =  shm_recvfrom(shm_socket, buf, size, key, timeout, 0);
   int rv =  shm_recvfrom(shm_socket, buf, size, key, timeout, BUS_TIMEOUT_FLAG);
    return rv;
}
int ShmModSocket::recvfrom_nowait( void **buf, int *size, int *key){
   int rv =  shm_recvfrom(shm_socket, buf, size, key, NULL, (int)BUS_NOWAIT_FLAG);
   int rv =  shm_recvfrom(shm_socket, buf, size, key, NULL, BUS_NOWAIT_FLAG);
   // logger->error(rv, "ShmModSocket::recvfrom_nowait failed!");
  return rv;
}