Searched refs:srvAddr (Results 1 – 4 of 4) sorted by relevance
/test/xts/acts/communication_lite/lwip_hal/src/ |
D | lwip_func_test.c | 92 struct sockaddr_in srvAddr = {0}; in CommInitTcpServer() local 93 srvAddr.sin_family = AF_INET; in CommInitTcpServer() 94 srvAddr.sin_addr.s_addr = inet_addr(LOCAL_HOST); in CommInitTcpServer() 95 srvAddr.sin_port = htons(port); in CommInitTcpServer() 96 ret = bind(srvFd, (struct sockaddr*)&srvAddr, sizeof(srvAddr)); in CommInitTcpServer() 121 struct sockaddr_in srvAddr = {0}; in CommTcpClientTask() local 122 srvAddr.sin_family = AF_INET; in CommTcpClientTask() 123 srvAddr.sin_addr.s_addr = inet_addr(LOCAL_HOST); in CommTcpClientTask() 124 srvAddr.sin_port = htons(PEER_PORT+1); in CommTcpClientTask() 125 int rst = connect(clnFd, (struct sockaddr*)&srvAddr, sizeof(srvAddr)); in CommTcpClientTask() [all …]
|
/test/xts/acts/communication_lite/lwip_posix/src/ |
D | ActsLwipTest.cpp | 70 struct sockaddr_in srvAddr = {0}; in CommInitTcpServer() local 71 srvAddr.sin_family = AF_INET; in CommInitTcpServer() 72 srvAddr.sin_addr.s_addr = inet_addr(g_localHost); in CommInitTcpServer() 73 srvAddr.sin_port = htons(port); in CommInitTcpServer() 74 ret = ::bind(srvFd, (struct sockaddr*)&srvAddr, sizeof(srvAddr)); in CommInitTcpServer() 105 struct sockaddr_in srvAddr = {0}; in CommTcpClientTask() local 106 srvAddr.sin_family = AF_INET; in CommTcpClientTask() 107 srvAddr.sin_addr.s_addr = inet_addr(g_localHost); in CommTcpClientTask() 108 srvAddr.sin_port = htons(PEER_PORT + 1); in CommTcpClientTask() 109 int rst = connect(clnFd, (struct sockaddr*)&srvAddr, sizeof(srvAddr)); in CommTcpClientTask() [all …]
|
/test/xts/acts/kernel_lite/net_posix/src/ |
D | ActsNetTest.cpp | 88 struct sockaddr_in srvAddr = {0}; in CommInitTcpServer() local 89 srvAddr.sin_family = AF_INET; in CommInitTcpServer() 90 srvAddr.sin_addr.s_addr = inet_addr(g_localHost); in CommInitTcpServer() 91 srvAddr.sin_port = htons(port); in CommInitTcpServer() 92 ret = ::bind(srvFd, (struct sockaddr*)&srvAddr, sizeof(srvAddr)); in CommInitTcpServer() 123 struct sockaddr_in srvAddr = {0}; in CommTcpClientTask() local 124 srvAddr.sin_family = AF_INET; in CommTcpClientTask() 125 srvAddr.sin_addr.s_addr = inet_addr(g_localHost); in CommTcpClientTask() 126 srvAddr.sin_port = htons(PEER_PORT + 1); in CommTcpClientTask() 127 int rst = connect(clnFd, (struct sockaddr*)&srvAddr, sizeof(srvAddr)); in CommTcpClientTask() [all …]
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
D | otherstestndk.cpp | 752 struct sockaddr_in srvAddr = {0}; in ThreadTaskClient() local 753 srvAddr.sin_family = AF_INET; in ThreadTaskClient() 754 srvAddr.sin_addr.s_addr = inet_addr(gLocalHost); in ThreadTaskClient() 755 srvAddr.sin_port = htons(PORT); in ThreadTaskClient() 756 rets = bind(sListen, (struct sockaddr *)&srvAddr, sizeof(srvAddr)); in ThreadTaskClient() 801 struct sockaddr_in srvAddr = {0}; in ServerTaskOne() local 802 srvAddr.sin_family = AF_INET; in ServerTaskOne() 803 srvAddr.sin_addr.s_addr = inet_addr(gLocalHost); in ServerTaskOne() 804 srvAddr.sin_port = htons(PORT); in ServerTaskOne() 805 rets = bind(sListen, (struct sockaddr *)&srvAddr, sizeof(srvAddr)); in ServerTaskOne()
|