Lines Matching refs:srvAddr
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()
249 struct sockaddr_in srvAddr = {0}; in SampleTcpClientTask() local
250 srvAddr.sin_family = AF_INET; in SampleTcpClientTask()
251 srvAddr.sin_addr.s_addr = inet_addr(g_localHost); in SampleTcpClientTask()
252 srvAddr.sin_port = htons(PEER_PORT); in SampleTcpClientTask()
253 int ret = connect(clnFd, (struct sockaddr*)&srvAddr, sizeof(srvAddr)); in SampleTcpClientTask()
254 …printf("[tcp client]connect %s:%d, fd[%d]\n", inet_ntoa(srvAddr.sin_addr), ntohs(srvAddr.sin_port)… in SampleTcpClientTask()
538 struct sockaddr_in srvAddr = {0}; variable
544 srvAddr.sin_family = AF_INET;
545 srvAddr.sin_addr.s_addr = inet_addr(g_localHost);
546 srvAddr.sin_port = htons(STACK_PORT);
547 int ret = ::bind(sfd, (struct sockaddr*)&srvAddr, sizeof(srvAddr));