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

a gio.SocketAddress or NULL on error. Free the returned object with g_object_unref().

Throws

GException on failure.

Meta

Since

2.22