Searched refs:tcpSocketHandle (Results 1 – 2 of 2) sorted by relevance
/external/ltp/testcases/network/sockets/ |
D | ltpServer.c | 50 rc, msg_bytes, tcpSocketHandle, newTcpSocketHandle, multiSocketHandle; variable 165 tcpSocketHandle = socket(AF_INET, SOCK_STREAM, 0); in main() 167 if (tcpSocketHandle < 0) { in main() 168 printf("Error: cannot open socket %d \n", tcpSocketHandle); in main() 194 rc = bind(tcpSocketHandle, (struct sockaddr *)&tcpServerAddr, in main() 266 listen(tcpSocketHandle, 5); in ltp_tcp_server_queue() 275 accept(tcpSocketHandle, (struct sockaddr *)&tcpClientAddr, in ltp_tcp_server_queue()
|
D | ltpClient.c | 87 int udpSocketHandle, tcpSocketHandle, mcastSocketHandle, rc, i; in main() local 149 tcpSocketHandle = socket(AF_INET, SOCK_STREAM, 0); in main() 155 if (tcpSocketHandle < 0) { in main() 178 if (tcpSocketHandle > 0) { in main() 179 rc = bind(tcpSocketHandle, (struct sockaddr *)&tcpClientAddr, in main() 186 rc = connect(tcpSocketHandle, in main() 261 if (tcpSocketHandle > 0) { in main() 262 rc = send(tcpSocketHandle, argv[i], strlen(argv[i]) + 1, in main() 267 close(tcpSocketHandle); in main()
|