Searched refs:tcpSocketHandle (Results 1 - 2 of 2) sorted by relevance

/external/ltp/testcases/network/sockets/
H A DltpServer.c50 rc, msg_bytes, tcpSocketHandle, newTcpSocketHandle, multiSocketHandle; variable
165 tcpSocketHandle = socket(AF_INET, SOCK_STREAM, 0);
167 if (tcpSocketHandle < 0) {
168 printf("Error: cannot open socket %d \n", tcpSocketHandle);
194 rc = bind(tcpSocketHandle, (struct sockaddr *)&tcpServerAddr,
266 listen(tcpSocketHandle, 5);
275 accept(tcpSocketHandle, (struct sockaddr *)&tcpClientAddr,
H A DltpClient.c87 int udpSocketHandle, tcpSocketHandle, mcastSocketHandle, rc, i; local
149 tcpSocketHandle = socket(AF_INET, SOCK_STREAM, 0);
155 if (tcpSocketHandle < 0) {
178 if (tcpSocketHandle > 0) {
179 rc = bind(tcpSocketHandle, (struct sockaddr *)&tcpClientAddr,
186 rc = connect(tcpSocketHandle,
261 if (tcpSocketHandle > 0) {
262 rc = send(tcpSocketHandle, argv[i], strlen(argv[i]) + 1,
267 close(tcpSocketHandle);

Completed in 117 milliseconds