Home
last modified time | relevance | path

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

/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_shutdown.c65 int clnt_sk[MAX_CLIENTS], acpt_sk[MAX_CLIENTS],sk; in main() local
97 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
98 test_connect(clnt_sk[i], (struct sockaddr *)&lstn_addr, in main()
138 error = shutdown(clnt_sk[0], SHUT_WR); in main()
154 test_recv(clnt_sk[0], msgbuf, 100, 0); in main()
157 error = recv(clnt_sk[0], msgbuf, 100, 0); in main()
167 test_shutdown(clnt_sk[1], SHUT_RD); in main()
169 error = recv(clnt_sk[1], msgbuf, 100, 0); in main()
175 error = test_send(clnt_sk[1], message, strlen(message), 0); in main()
187 error = recv(clnt_sk[1], msgbuf, 100, 0); in main()
[all …]
Dtest_1_to_1_accept_close.c78 int sk,lstn_sk,clnt_sk[SK_MAX],acpt_sk,pf_class; in main() local
101 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
128 test_connect(clnt_sk[i++], (struct sockaddr *) &conn_addr, len); in main()
163 test_connect(clnt_sk[i++], (struct sockaddr *) &conn_addr, len); in main()
173 test_connect(clnt_sk[i++], (struct sockaddr *) &conn_addr, len); in main()
191 test_connect(clnt_sk[i], (struct sockaddr *) &conn_addr, len); in main()
240 close(clnt_sk[i]); in main()
Dtest_1_to_1_addrs.c82 int lstn_sk,clnt_sk,acpt_sk,pf_class,sk1; in main() local
110 clnt_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
131 test_connect(clnt_sk, (struct sockaddr *) &conn_addr, len); in main()
167 test_sendmsg(clnt_sk, &outmessage, MSG_NOSIGNAL, msg_count); in main()
286 close(clnt_sk); in main()
Dtest_1_to_1_connect.c73 int sk,lstn_sk,clnt_sk[SK_MAX],acpt_sk[SK_MAX],pf_class; in main() local
96 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
172 error = connect(clnt_sk[i], (const struct sockaddr *)&conn_addr, in main()
214 close(clnt_sk[i]); in main()
Dtest_1_to_1_connectx.c73 int sk,lstn_sk,clnt_sk[SK_MAX],acpt_sk[SK_MAX],pf_class; in main() local
95 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
164 error = sctp_connectx(clnt_sk[i], (struct sockaddr *)&conn_addr, in main()
206 close(clnt_sk[i]); in main()