Socket.getPeerName

get the name of the socket's peer (for connected sockets only)

struct Socket
@trusted @nogc
SockAddr
getPeerName
()

Throws

ErrnoException (ENOTCONN) if called on an unconnected socket.

Meta