Home
last modified time | relevance | path

Searched refs:sock_tcp_client (Results 1 – 4 of 4) sorted by relevance

/NetX-Duo-v6.4.1/samples/
Ddemo_bsd_tcp.c401 INT sock_tcp_client, length; in thread_client_entry() local
462 sock_tcp_client = socket( AF_INET6, SOCK_STREAM, IPPROTO_TCP); in thread_client_entry()
464 sock_tcp_client = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP); in thread_client_entry()
467 if (sock_tcp_client == -1) in thread_client_entry()
473 printf("Client socket created %lu \n", (ULONG)sock_tcp_client); in thread_client_entry()
477 status = connect(sock_tcp_client, (struct sockaddr *)&echoServAddr6, sizeof(echoServAddr6)); in thread_client_entry()
479 status = connect(sock_tcp_client, (struct sockaddr *)&echoServAddr, sizeof(echoServAddr)); in thread_client_entry()
486 status = soc_close(sock_tcp_client); in thread_client_entry()
491 printf("Client socket %d connected \n", sock_tcp_client); in thread_client_entry()
495 status = getsockname(sock_tcp_client, (struct sockaddr *)&localAddr6, &length); in thread_client_entry()
[all …]
/NetX-Duo-v6.4.1/test/regression/bsd_test/
Dnetx_bsd_tcp_clients_shared_port_test.c169 INT status, sock_tcp_client, sock_tcp_client6; in thread_client_entry() local
258 sock_tcp_client = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in thread_client_entry()
260 if (sock_tcp_client == -1) in thread_client_entry()
276 status = bind (sock_tcp_client, (struct sockaddr *) &echoClientAddr, sizeof(echoClientAddr)); in thread_client_entry()
286 status = connect(sock_tcp_client, (struct sockaddr *)&echoServAddr, sizeof(echoServAddr)); in thread_client_entry()
295 status = getsockname(sock_tcp_client, (struct sockaddr *)&localAddr, &length); in thread_client_entry()
330 status = send(sock_tcp_client, requests[0], strlen(requests[0]), 0); in thread_client_entry()
345 status = recv(sock_tcp_client, (VOID *)rcvBuffer, 32, 0); in thread_client_entry()
364 soc_close(sock_tcp_client); in thread_client_entry()
Dnetx_bsd_tcp_clients_share_port_test.c712 INT sock_tcp_client; in thread_client_entry() local
743 sock_tcp_client = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP); in thread_client_entry()
745 if (sock_tcp_client == -1) in thread_client_entry()
751 … status = bind (sock_tcp_client, (struct sockaddr *) &echoClientAddr, sizeof(echoClientAddr)); in thread_client_entry()
760 status = connect(sock_tcp_client, (struct sockaddr *)&echoServAddr, sizeof(echoServAddr)); in thread_client_entry()
773 … status = send(sock_tcp_client, "Hello from Client4", (strlen("Hello from Client4")+1), 0); in thread_client_entry()
784 status = recv(sock_tcp_client, (VOID *)Client_Rcv_Buffer, 100, 0); in thread_client_entry()
821 status = soc_close(sock_tcp_client); in thread_client_entry()
Dnetx_bsd_tcp_servers_share_port_test.c809 INT sock_tcp_client; in thread_client_entry() local
837 sock_tcp_client = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP); in thread_client_entry()
839 if (sock_tcp_client == -1) in thread_client_entry()
846 status = connect(sock_tcp_client, (struct sockaddr *)&echoServAddr, sizeof(echoServAddr)); in thread_client_entry()
860 … status = send(sock_tcp_client, "Hello from Client4", (strlen("Hello from Client4")+1), 0); in thread_client_entry()
868 status = recv(sock_tcp_client, (VOID *)Client_Rcv_Buffer, 100, 0); in thread_client_entry()
896 status = soc_close(sock_tcp_client); in thread_client_entry()