Back to Seed Clases

Gio


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gio.SocketAddress

Class Gio.SocketAddress

Import line: Gio = imports.gi.Gio;
GIR File: Gio-2.0.gir
C documentation: GSocketAddress
Class : SocketAddress
Implements: Gio.SocketConnectable
Subclasses: Gio.InetSocketAddress, Gio.ProxyAddress
Extends: GObject.Object
GSocketAddress is the equivalent of struct sockaddr
in the BSD sockets API. This is an abstract class; use
GInetSocketAddress for internet sockets, or GUnixSocketAddress
for UNIX domain sockets.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gio.Socket
Property
local_address : Gio.SocketAddress read only
Gio.Socket
Property
remote_address : Gio.SocketAddress read only
Gio.Socket
Method
bind (SocketAddress address, gboolean allow_reuse) : gboolean
When a socket is created it is attached to an address family, but it
doesn't have an address in this family.
Gio.Socket
Method
connect (SocketAddress address, Cancellable cancellable) : gboolean
Connect the socket to the specified remote address.
Gio.Socket
Method
get_local_address () : Gio.SocketAddress
Try to get the local address of a bound socket.
Gio.Socket
Method
get_remote_address () : Gio.SocketAddress
Try to get the remove address of a connected socket.
Gio.Socket
Method
receive_from (SocketAddress address, String buffer, guint32 size, Cancellable cancellable) : gint32
Receive data (up to size bytes) from a socket.
Gio.Socket
Method
receive_message (SocketAddress address, Array vectors, gint32 num_vectors, Array messages, gint32 num_messages, gint32 flags, Cancellable cancellable) : gint32
Receive data from a socket.
Gio.Socket
Method
send_message (SocketAddress address, Array vectors, gint32 num_vectors, Array messages, gint32 num_messages, gint32 flags, Cancellable cancellable) : gint32
Send data to address on socket.
Gio.Socket
Method
send_to (SocketAddress address, Array buffer, guint32 size, Cancellable cancellable) : gint32
Tries to send size bytes from buffer to address.
Gio.SocketAddressEnumerator
Method
next (Cancellable cancellable) : Gio.SocketAddress
Retrieves the next GSocketAddress from enumerator.
Gio.SocketAddressEnumerator
Method
next_finish (AsyncResult result) : Gio.SocketAddress
Retrieves the result of a completed call to
g_socket_address_enumerator_next_async().
Gio.SocketClient
Property
local_address : Gio.SocketAddress
Gio.SocketClient
Method
get_local_address () : Gio.SocketAddress
Gets the local address of the socket client.
Gio.SocketClient
Method
set_local_address (SocketAddress address) : none
Sets the local address of the socket client.
Gio.SocketConnection
Method
get_local_address () : Gio.SocketAddress
Try to get the local address of a socket connection.
Gio.SocketConnection
Method
get_remote_address () : Gio.SocketAddress
Try to get the remote address of a socket connection.
Gio.SocketListener
Method
add_address (SocketAddress address, SocketType type, SocketProtocol protocol, Object source_object, Object out_values) : gboolean
Creates a socket of type type and protocol protocol, binds
it to address and adds it to the set of sockets we're accepting
sockets from.
Soup.Address
Method
get_gsockaddr () : Gio.SocketAddress
Creates a new GSocketAddress corresponding to addr (which is assumed
to only have one socket address associated with it).
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:16 GMT+0800 (HKT)