- // a typedef that allow us to compile against both winsock & POSIX sockets:
- // (both arg types and calling conventions differ for both)
- // POSIX: void setFromSocket(int socket,
- // int(*fn)(int, struct sockaddr*, socklen_t*));
- // mingw: void setFromSocket(unsigned socket,
- // int(*fn)(unsigned, struct sockaddr*, socklen_t*));
- using GetPeerNameFunc = decltype(getpeername);
-