bool checkSockaddr(sockaddr_in a, soc开发者_如何学JAVAkaddr_in b)
check if they two have the same address information.
bool checkSockaddr(sockaddr_in const &a, sockaddr_in const &b) { return a.sin_addr.S_un.S_addr == b.sin_addr.S_un.S_addr; }
bool checkSockaddr(sockaddr_in a, soc开发者_如何学JAVAkaddr_in b)
check if they two have the same address information.
bool checkSockaddr(sockaddr_in const &a, sockaddr_in const &b) { return a.sin_addr.S_un.S_addr == b.sin_addr.S_un.S_addr; }
精彩评论