Socket.getRemoteAddress

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

class Socket
getRemoteAddress
()

Return Value

a #GSocketAddress or %NULL on error. Free the returned object with g_object_unref().

Throws

GException on failure.

Meta

Since

2.22