Home
last modified time | relevance | path

Searched refs:acpt_sk (Results 1 – 14 of 14) sorted by relevance

/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_sendto.c65 int sk,sk1,pf_class,lstn_sk,acpt_sk,flag; in main() local
104 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
117 test_recv(acpt_sk, message_rcv, msg_count, flag); in main()
122 count = sendto(acpt_sk, message, msg_count, flag, in main()
133 close(acpt_sk); in main()
147 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
149 test_recv(acpt_sk, message_rcv, msg_count, flag); in main()
155 test_recv(acpt_sk, message_rcv, 5, flag); in main()
161 close(acpt_sk); in main()
Dtest_1_to_1_send.c69 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag, count; in main() local
109 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
176 close(acpt_sk); in main()
198 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
210 test_recv(acpt_sk, message_rcv, msg_count, flag); in main()
215 count = send(acpt_sk, message, msg_count, flag); in main()
227 test_recv(acpt_sk, message_rcv, 5, flag); in main()
233 test_recv(acpt_sk, message_rcv, strlen(message) + 1, flag); in main()
238 close(acpt_sk); in main()
Dtest_1_to_1_shutdown.c65 int clnt_sk[MAX_CLIENTS], acpt_sk[MAX_CLIENTS],sk; in main() local
104 acpt_sk[i] = test_accept(lstn_sk, (struct sockaddr *)&acpt_addr, in main()
135 test_send(acpt_sk[0], message, strlen(message), 0); in main()
146 error = recv(acpt_sk[0], msgbuf, 100, 0); in main()
181 test_recv(acpt_sk[1], msgbuf, 100, 0); in main()
184 test_send(acpt_sk[1], message, strlen(message), 0); in main()
198 error = recv(acpt_sk[2], msgbuf, 100, 0); in main()
221 close(acpt_sk[i]); in main()
Dtest_1_to_1_recvmsg.c68 int sk,pf_class,lstn_sk,acpt_sk; in main() local
112 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
151 count = recvmsg(acpt_sk, &inmessage, flag); in main()
161 count = recvmsg(acpt_sk, (struct msghdr *)-1, flag); in main()
176 count = test_send(acpt_sk, message1, strlen(message), 0); in main()
182 count = recvmsg(acpt_sk, &inmessage, flag); in main()
214 close(acpt_sk); in main()
Dtest_1_to_1_sendmsg.c76 int sk,sk1,pf_class,lstn_sk,acpt_sk,acpt1_sk, flag; in main() local
124 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
257 close(acpt_sk); in main()
282 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
317 count = sendmsg(acpt_sk, &outmessage, flag); in main()
337 count = test_recvmsg(acpt_sk, &inmessage, flag); in main()
343 close(acpt_sk); in main()
355 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
357 count = test_recvmsg(acpt_sk, &inmessage, flag); in main()
370 count = test_recvmsg(acpt_sk, &inmessage, flag); 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
176 acpt_sk = test_accept(lstn_sk, (struct sockaddr *) &acpt_addr, &len); in main()
179 error = accept(acpt_sk, (struct sockaddr *) &acpt_addr, &len); in main()
189 close(acpt_sk); in main()
194 acpt_sk = accept(lstn_sk, (struct sockaddr *) &acpt_addr, &len); in main()
195 if (acpt_sk < 0) in main()
201 close(acpt_sk); in main()
Dtest_1_to_1_recvfrom.c68 int sk,pf_class,lstn_sk,acpt_sk, flag; in main() local
109 acpt_sk = test_accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
145 count = recvfrom(acpt_sk, (char *)-1, msg_count, flag, in main()
162 count = test_send(acpt_sk, message, msg_count, flag); in main()
167 count = recvfrom(acpt_sk, message_rcv, msg_count, flag, in main()
202 close(acpt_sk); in main()
Dtest_1_to_1_events.c55 int svr_sk, clt_sk,acpt_sk; in main() local
105 acpt_sk = test_accept(svr_sk, (struct sockaddr *) &acpt_loop, &len); in main()
160 error = test_recvmsg(acpt_sk, &inmessage, MSG_WAITALL); in main()
171 error = test_recvmsg(acpt_sk, &inmessage, MSG_WAITALL); in main()
178 error = test_recvmsg(acpt_sk, &inmessage, MSG_WAITALL); in main()
187 close(acpt_sk); in main()
Dtest_1_to_1_nonblock.c68 int sk,pf_class,lstn_sk,acpt_sk,flag,cflag,sflag; in main() local
150 acpt_sk = accept(lstn_sk, (struct sockaddr *)&svr_addr, &len); in main()
151 if (acpt_sk < 0) in main()
197 test_sendmsg(acpt_sk, &outmessage, flag, msg_count); in main()
207 close(acpt_sk); 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
185 acpt_sk[i] = test_accept(lstn_sk, in main()
198 error = sctp_connectx(acpt_sk[i], (struct sockaddr *) &lstn_addr, 1, NULL); in main()
207 close(acpt_sk[i]); 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
193 acpt_sk[i] = test_accept(lstn_sk, in main()
206 error = connect(acpt_sk[i], (const struct sockaddr *) &lstn_addr, len); in main()
215 close(acpt_sk[i]); in main()
Dtest_1_to_1_threads.c62 int acpt_sk; variable
84 cnt = test_recvmsg(acpt_sk,&inmessage, MSG_WAITALL); in t_recv()
170 acpt_sk = test_accept(server_sk, (struct sockaddr *)&svr_addr, &len); in main()
Dtest_1_to_1_addrs.c82 int lstn_sk,clnt_sk,acpt_sk,pf_class,sk1; in main() local
133 acpt_sk = test_accept(lstn_sk, (struct sockaddr *) &acpt_addr, &len); in main()
169 test_recvmsg(acpt_sk, &inmessage, MSG_NOSIGNAL); in main()
266 error = sctp_getpaddrs(acpt_sk, 0, &paddrs); in main()
Dtest_1_to_1_sockopt.c85 int sk, sk1, sk2, acpt_sk, pf_class; in main() local
277 acpt_sk = test_accept(sk1, (struct sockaddr *)&addr, &len); in main()
431 close(acpt_sk); in main()