Class: Gio::SocketAddress
- Inherits:
-
Object
- Object
- Gio::SocketAddress
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#family ⇒ Gio::SocketFamily
Family.
- #family=(family) ⇒ Gio::SocketFamily
-
#native_size ⇒ Gio::gssize
Gets the size of address’s native struct sockaddr.
-
#new_from_native(native, len) ⇒ Gio::SocketAddress
Creates a GSocket::Address subclass corresponding to the native struct sockaddr native.
-
#to_native(dest, destlen) ⇒ TrueClass
Converts a GSocket::Address to a native struct sockaddr, which can be passed to low-level functions like connect() or bind().
Instance Method Details
#family ⇒ Gio::SocketFamily
Returns family.
#family=(family) ⇒ Gio::SocketFamily
#native_size ⇒ Gio::gssize
Gets the size of address’s native struct sockaddr. You can use this to allocate memory to pass to g_socket_address_to_native().
#new_from_native(native, len) ⇒ Gio::SocketAddress
Creates a GSocket::Address subclass corresponding to the native struct sockaddr native.
#to_native(dest, destlen) ⇒ TrueClass
Converts a GSocket::Address to a native struct sockaddr, which can be passed to low-level functions like connect() or bind().
If not enough space is available, a %G_IO_ERROR_NO_SPACE error is returned. If the address type is not known on the system then a %G_IO_ERROR_NOT_SUPPORTED error is returned. struct sockaddr