Searched refs:gBuf (Results 1 - 1 of 1) sorted by relevance
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/ |
H A D | net_socket_test_003.cpp | 54 static char gBuf[BUF_SIZE + 1] = { 0 }; in SampleTcpServer() local 86 ret = memset_s(gBuf, BUF_SIZE + 1, 0, BUF_SIZE + 1); in SampleTcpServer() 88 gBuf[BUF_SIZE - 1] = '\0'; in SampleTcpServer() 89 ret = strcpy_s(gBuf, BUF_SIZE - 1, SRV_MSG); in SampleTcpServer() 91 gBuf[BUF_SIZE - 1] = '\0'; in SampleTcpServer() 92 ret = send(sfd, gBuf, strlen(SRV_MSG), 0); in SampleTcpServer() 97 ret = memset_s(gBuf, BUF_SIZE + 1, 0, BUF_SIZE + 1); in SampleTcpServer() 99 gBuf[BUF_SIZE - 1] = '\0'; in SampleTcpServer() 100 ret = recv(sfd, gBuf, sizeof(gBuf), in SampleTcpServer() 157 static char gBuf[BUF_SIZE + 1] = { 0 }; SampleTcpClient() local [all...] |
Completed in 1 milliseconds