Socket.getRemoteAddress

Try to get the remote address of a connected socket. This is only useful for connection oriented sockets that have been connected.

Returns

a #GSocketAddress or null on error.

Free the returned object with [gobject.object.ObjectWrap.unref].

Throws

[ErrorWrap]