Searched refs:accept_sk (Results 1 – 3 of 3) sorted by relevance
/external/ltp/utils/sctp/func_tests/ |
D | test_tcp_style.c | 63 int clt_sk[MAX_CLIENTS], accept_sk[MAX_CLIENTS]; in main() local 179 accept_sk[i] = test_accept(listen_sk, &accept_loop.sa, in main() 186 error = connect(accept_sk[0], &clt_loop[0].sa, sizeof(clt_loop[0])); in main() 194 error = accept(accept_sk[0], &accept_loop.sa, &addrlen); in main() 211 test_recv(accept_sk[i], msgbuf, 100, 0); in main() 220 test_send(accept_sk[i], message, strlen(message), 0); in main() 244 test_send(accept_sk[0], message, strlen(message), 0); in main() 255 error = recv(accept_sk[0], msgbuf, 100, 0); in main() 307 test_recv(accept_sk[1], msgbuf, 100, 0); in main() 310 test_send(accept_sk[1], message, strlen(message), 0); in main() [all …]
|
D | test_getname.c | 62 int clt_sk, svr_sk, accept_sk; in main() local 149 accept_sk = test_accept(svr_sk, &accept_loop.sa, &len); in main() 154 error = getsockname(accept_sk, (struct sockaddr *)&svr_local_addr, in main() 165 error = getpeername(accept_sk, (struct sockaddr *)&svr_peer_addr, in main() 274 close(accept_sk); in main()
|
D | test_sockopt.c | 68 int accept_sk, peeloff_sk; in main() local 1041 accept_sk = test_accept(tcp_svr_sk, NULL, &addrlen); in main() 1048 test_getsockopt(accept_sk, SCTP_DEFAULT_SEND_PARAM, in main() 1132 error = test_getsockopt(accept_sk, SCTP_GET_PEER_ADDR_INFO, &pinfo, in main() 1142 close(accept_sk); in main()
|