Lines Matching refs:ts_lsns
53 int *ts_lsns;
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[i]);