Lines Matching refs:s_recv
2227 int s_recv; in recv_sctp_stream_1toMany() local
2333 s_recv = create_data_socket(local_res); in recv_sctp_stream_1toMany()
2335 if (s_recv < 0) { in recv_sctp_stream_1toMany()
2377 if (listen(s_recv, 5) == -1) { in recv_sctp_stream_1toMany()
2379 close(s_recv); in recv_sctp_stream_1toMany()
2387 if (getsockname(s_recv, in recv_sctp_stream_1toMany()
2391 close(s_recv); in recv_sctp_stream_1toMany()
2432 sctp_enable_events(s_recv, SCTP_ASSOC_CHANGE_EV | SCTP_SHUTDOWN_EV); in recv_sctp_stream_1toMany()
2436 if (!set_nonblock(s_recv)) { in recv_sctp_stream_1toMany()
2437 close(s_recv); in recv_sctp_stream_1toMany()
2473 while ((len = sctp_recvmsg(s_recv, recv_ring->buffer_ptr, recv_size, in recv_sctp_stream_1toMany()
2483 close(s_recv); in recv_sctp_stream_1toMany()
2488 if (sctp_process_event(s_recv, recv_ring->buffer_ptr) == SCTP_CLOSE) in recv_sctp_stream_1toMany()
2517 FD_SET(s_recv,&readfds); in recv_sctp_stream_1toMany()
2518 select(s_recv+1,&readfds,NULL,NULL,&timeout); in recv_sctp_stream_1toMany()
2526 if (close(s_recv) == -1) { in recv_sctp_stream_1toMany()