Home
last modified time | relevance | path

Searched refs:clnt_sk (Results 1 – 5 of 5) sorted by relevance

/third_party/ltp/utils/sctp/func_tests/
Dtest_1_to_1_shutdown.c66 int clnt_sk[MAX_CLIENTS], acpt_sk[MAX_CLIENTS],sk; in main() local
101 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
102 test_connect(clnt_sk[i], (struct sockaddr *)&lstn_addr, in main()
142 error = shutdown(clnt_sk[0], SHUT_WR); in main()
158 test_recv(clnt_sk[0], msgbuf, 100, 0); in main()
161 error = recv(clnt_sk[0], msgbuf, 100, 0); in main()
171 test_shutdown(clnt_sk[1], SHUT_RD); in main()
173 error = recv(clnt_sk[1], msgbuf, 100, 0); in main()
179 error = test_send(clnt_sk[1], message, strlen(message), 0); in main()
191 error = recv(clnt_sk[1], msgbuf, 100, 0); in main()
[all …]
Dtest_1_to_1_accept_close.c79 int sk,lstn_sk,clnt_sk[SK_MAX],acpt_sk,pf_class; in main() local
105 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
132 test_connect(clnt_sk[i++], (struct sockaddr *) &conn_addr, len); in main()
167 test_connect(clnt_sk[i++], (struct sockaddr *) &conn_addr, len); in main()
177 test_connect(clnt_sk[i++], (struct sockaddr *) &conn_addr, len); in main()
195 test_connect(clnt_sk[i], (struct sockaddr *) &conn_addr, len); in main()
244 close(clnt_sk[i]); in main()
Dtest_1_to_1_addrs.c83 int lstn_sk,clnt_sk,acpt_sk,pf_class,sk1; in main() local
114 clnt_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
135 test_connect(clnt_sk, (struct sockaddr *) &conn_addr, len); in main()
171 test_sendmsg(clnt_sk, &outmessage, MSG_NOSIGNAL, msg_count); in main()
290 close(clnt_sk); in main()
Dtest_1_to_1_connectx.c74 int sk,lstn_sk,clnt_sk[SK_MAX],acpt_sk[SK_MAX],pf_class; in main() local
99 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
168 error = sctp_connectx(clnt_sk[i], (struct sockaddr *)&conn_addr, in main()
210 close(clnt_sk[i]); in main()
Dtest_1_to_1_connect.c74 int sk,lstn_sk,clnt_sk[SK_MAX],acpt_sk[SK_MAX],pf_class; in main() local
100 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
176 error = connect(clnt_sk[i], (const struct sockaddr *)&conn_addr, in main()
218 close(clnt_sk[i]); in main()