Searched refs:ts_lsns (Results 1 - 3 of 3) sorted by relevance
/libmicro/ |
H A D | bind.c | 53 int *ts_lsns; member in struct:__anon1 105 ts->ts_lsns = (int *)malloc(lm_optB * sizeof (int)); 106 if (ts->ts_lsns == NULL) 116 if ((ts->ts_lsns[i] = socket(PF_INET, SOCK_STREAM, 0)) == -1) 119 if (setsockopt(ts->ts_lsns[i], SOL_SOCKET, SO_REUSEADDR, 143 if ((bind(ts->ts_lsns[i], 161 (void) close(ts->ts_lsns[i]);
|
H A D | close_tcp.c | 53 int *ts_lsns; member in struct:__anon9 89 ts->ts_lsns = (int *)malloc(lm_optB * sizeof (int)); 90 if (ts->ts_lsns == NULL) { 109 ts->ts_lsns[i] = socket(AF_INET, SOCK_STREAM, 0); 110 if (ts->ts_lsns[i] == -1) { 115 if (setsockopt(ts->ts_lsns[i], SOL_SOCKET, SO_REUSEADDR, 133 if (bind(ts->ts_lsns[i], 145 if (listen(ts->ts_lsns[i], 5) == -1) { 189 result = accept(ts->ts_lsns[i], (struct sockaddr *)&addr, 238 (void) close(ts->ts_lsns[ [all...] |
H A D | connection.c | 52 int *ts_lsns; member in struct:__anon10 117 ts->ts_lsns = (int *)malloc(lm_optB * sizeof (int)); 118 if (ts->ts_lsns == NULL) { 138 ts->ts_lsns[i] = socket(AF_INET, SOCK_STREAM, 0); 139 if (ts->ts_lsns[i] == -1) { 149 if (fcntl(ts->ts_lsns[i], F_SETFL, O_NDELAY) == -1) { 167 if (bind(ts->ts_lsns[i], 178 if (listen(ts->ts_lsns[i], 5) == -1) { 266 result = accept(ts->ts_lsns[i], 271 pollfd.fd = ts->ts_lsns[ [all...] |
Completed in 10 milliseconds