Lines Matching refs:clnt_sk
65 int clnt_sk[MAX_CLIENTS], acpt_sk[MAX_CLIENTS],sk;
97 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP);
98 test_connect(clnt_sk[i], (struct sockaddr *)&lstn_addr,
138 error = shutdown(clnt_sk[0], SHUT_WR);
151 /* Read the pending message on clnt_sk[0] that was received before
154 test_recv(clnt_sk[0], msgbuf, 100, 0);
157 error = recv(clnt_sk[0], msgbuf, 100, 0);
167 test_shutdown(clnt_sk[1], SHUT_RD);
169 error = recv(clnt_sk[1], msgbuf, 100, 0);
175 error = test_send(clnt_sk[1], message, strlen(message), 0);
187 error = recv(clnt_sk[1], msgbuf, 100, 0);
196 test_shutdown(clnt_sk[2], SHUT_RDWR);
203 error = recv(clnt_sk[2], msgbuf, 100, 0);
219 close(clnt_sk[i]);