Definition at line 235 of file tcpip.c.
References dim_get_write_timeout(), DIM_IO_path, dtq_create(), get_write_tmout(), init_done, io_sig_handler(), queue_id, tcpip_pipe_sig_handler(), Threads_on, and ushort.
Referenced by dim_tcpip_thread(), enable_sig(), tcpip_open_client(), and tcpip_open_server().
242 void create_io_thread(
void);
244 struct sigaction sig_info;
247 void dummy_io_sig_handler();
268 sigaddset(&
set,SIGALRM);
270 sig_info.sa_mask =
set;
272 sig_info.sa_flags = SA_RESTART;
274 sig_info.sa_flags = 0;
277 if( sigaction(SIGIO, &sig_info, 0) < 0 )
279 perror(
"sigaction(SIGIO)" );
285 sig_info.sa_mask =
set;
287 sig_info.sa_flags = SA_RESTART;
289 sig_info.sa_flags = 0;
292 if( sigaction(SIGPIPE, &sig_info, 0) < 0 ) {
293 perror(
"sigaction(SIGPIPE)" );
304 if( (
DIM_IO_path[0] = (
int)socket(AF_INET, SOCK_STREAM, 0)) == -1 )
310 DIM_sockname.sin_family = PF_INET;
312 DIM_sockname.sin_addr = *((
struct in_addr *) &addr);
313 DIM_sockname.sin_port = htons((
ushort) 2000);
void io_sig_handler(int num)
static int DIM_IO_path[2]
int dim_get_write_timeout()
void tcpip_pipe_sig_handler(int num)