Back to Seed Clases

Gio


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child markerGio.IOStream
parent-child marker Gio.SocketConnection

Class Gio.SocketConnection

Import line: Gio = imports.gi.Gio;
GIR File: Gio-2.0.gir
C documentation: GSocketConnection
Class : SocketConnection
Extends: Gio.IOStream
GSocketConnection is a GIOStream for a connected socket. They
can be created either by GSocketClient when connecting to a host,
or by GSocketListener when accepting a new client.
The type of the GSocketConnection object returned from these calls
depends on the type of the underlying socket that is in use. For
instance, for a TCP/IP connection it will be a GTcpConnection.
Chosing what type of object to construct is done with the socket
connection factory, and it is possible for 3rd parties to register
custom socket connection types for specific combination of socket
family/type/protocol using g_socket_connection_factory_register_type().
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
Method
connection_factory_create_connection () : Gio.SocketConnection
Creates a GSocketConnection subclass of the right type for
Gio.SocketClient
Method
connect (SocketConnectable connectable, Cancellable cancellable) : Gio.SocketConnection
Tries to resolve the connectable and make a network connection to it.
Gio.SocketClient
Method
connect_finish (AsyncResult result) : Gio.SocketConnection
Finishes an async connect operation.
Gio.SocketClient
Method
connect_to_host (String host_and_port, guint16 default_port, Cancellable cancellable) : Gio.SocketConnection
This is a helper function for g_socket_client_connect().
Gio.SocketClient
Method
connect_to_host_finish (AsyncResult result) : Gio.SocketConnection
Finishes an async connect operation.
Gio.SocketClient
Method
connect_to_service (String domain, String service, Cancellable cancellable) : Gio.SocketConnection
Attempts to create a TCP connection to a service.
Gio.SocketClient
Method
connect_to_service_finish (AsyncResult result) : Gio.SocketConnection
Finishes an async connect operation.
Gio.SocketClient
Method
connect_to_uri (String uri, guint16 default_port, Cancellable cancellable) : Gio.SocketConnection
This is a helper function for g_socket_client_connect().
Gio.SocketClient
Method
connect_to_uri_finish (AsyncResult result) : Gio.SocketConnection
Finishes an async connect operation.
Gio.SocketListener
Method
accept (Object out_values, Cancellable cancellable) : Gio.SocketConnection
Blocks waiting for a client to connect to any of the sockets added
to the listener.
Gio.SocketListener
Method
accept_finish (AsyncResult result, Object out_values) : Gio.SocketConnection
Finishes an async accept operation.
Gio.SocketService
Signal
incoming (SocketService self, SocketConnection connection, Object source_object) : gboolean
The ::incoming signal is emitted when a new incoming connection
to service needs to be handled.
Gio.ThreadedSocketService
Signal
run (ThreadedSocketService self, SocketConnection connection, Object source_object) : gboolean
The ::run signal is emitted in a worker thread in response to an
incoming connection.
TelepathyGLib.StreamTubeConnection
Property
socket_connection : Gio.SocketConnection
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:17 GMT+0800 (HKT)