Searched refs:tcpServerAddr (Results 1 – 2 of 2) sorted by relevance
52 struct sockaddr_in tcpServerAddr = {}; in CreateAndBindSocket() local53 tcpServerAddr.sin_family = AF_INET; in CreateAndBindSocket()54 tcpServerAddr.sin_addr.s_addr = inet_addr("127.0.0.1"); in CreateAndBindSocket()55 tcpServerAddr.sin_port = htons(TCP_PORT); in CreateAndBindSocket()57 … (::bind(tcpServerFd, reinterpret_cast<struct sockaddr*>(&tcpServerAddr), sizeof(tcpServerAddr)) <… in CreateAndBindSocket()