since: 2.22

Declaration [src]

g_socket_get_remote_address (
  GSocket* socket
  GError** error

Description [src]

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

Available since: 2.22

Return value

Type: GSocketAddress

A GSocketAddress or NULL on error. Free the returned object with g_object_unref().

The caller of the method takes ownership of the data, and is responsible for freeing it.