Constructor

GioInetAddressnew_loopback

Declaration

GInetAddress*
g_inet_address_new_loopback (
  GSocketFamily family
)

Description

Creates a GInetAddress for the loopback address for family.

Available since:2.22

Parameters

family GSocketFamily
 

The address family.

Return value

Returns: GInetAddress
 

A new GInetAddress corresponding to the loopback address for family. Free the returned object with g_object_unref().

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