Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GSocketType |
Enum : | SocketType |
Properties | |
---|---|
guint32 Gio.SocketType.DATAGRAM : 2
|
|
guint32 Gio.SocketType.INVALID : 0
|
|
guint32 Gio.SocketType.SEQPACKET : 3
|
|
guint32 Gio.SocketType.STREAM : 1
|
None |
None |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gio.Socket
Property |
type : Gio.SocketType
|
Gio.Socket
Method |
Create a new Gio.Socket
|
Gio.Socket
Method |
get_socket_type
()
:
Gio.SocketType
Gets the socket type of the socket.
|
Gio.SocketClient
Property |
type : Gio.SocketType
|
Gio.SocketClient
Method |
get_socket_type
()
:
Gio.SocketType
Gets the socket type of the socket client.
|
Gio.SocketClient
Method |
set_socket_type
(SocketType type)
:
none
Sets the socket type of the socket client.
|
Gio.SocketConnection
Method |
Gio.SocketConnection.factory_lookup_type
(SocketFamily family, SocketType type, gint32 protocol_id)
:
Number
Looks up the GType to be used when creating socket connections on
sockets with the specified family,type and protocol_id. |
Gio.SocketConnection
Method |
Gio.SocketConnection.factory_register_type
(Number g_type, SocketFamily family, SocketType type, gint32 protocol)
:
none
Looks up the GType to be used when creating socket connections on
sockets with the specified family,type and protocol. |
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. |