Removing the timeout of the socket.

master
Pedro Alvarez 7 years ago
parent 91fd66fe9a
commit 4307a5aef2

@ -97,15 +97,7 @@ s1ap::enb_listen()
return -1; return -1;
} }
//Set timeout //Sets the data_io_event to be able to use sendrecv_info
struct timeval timeout;
timeout.tv_sec = 1;
timeout.tv_usec = 0;
if (setsockopt (sock_fd, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, sizeof(timeout)) < 0){
m_s1ap_log->console("Set socket timeout failed\n");
return -1;
}
bzero (&evnts, sizeof (evnts)) ; bzero (&evnts, sizeof (evnts)) ;
evnts.sctp_data_io_event = 1; evnts.sctp_data_io_event = 1;
if(setsockopt(sock_fd, IPPROTO_SCTP, SCTP_EVENTS, &evnts, sizeof (evnts))){ if(setsockopt(sock_fd, IPPROTO_SCTP, SCTP_EVENTS, &evnts, sizeof (evnts))){

Loading…
Cancel
Save