Socket.getRemoteAddress

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

class Socket
getRemoteAddress
()

Return Value

Type: gio.socket_address.SocketAddress

a #GSocketAddress or null on error. Free the returned object with gobject.object.ObjectG.unref.