GLib.SocketConnection – gio-2.0 Reference Manual
Packages
gio-2.0
GLib
SocketConnection
socket
factory_create_connection
factory_lookup_type
factory_register_type
SocketConnection
connect
connect_async
get_local_address
get_remote_address
get_socket
is_connected
SocketConnection
Object Hierarchy:
Description:
public
class
SocketConnection
:
IOStream
All known sub-classes:
TcpConnection
TcpWrapperConnection
Namespace:
GLib
Package:
gio-2.0
Content:
Properties:
public
Socket
socket
{
construct
set
;
get
; }
Static methods:
public
static
SocketConnection
factory_create_connection
(
Socket
socket)
public
static
Type
factory_lookup_type
(
SocketFamily
family,
SocketType
type,
int
protocol_id)
public
static
void
factory_register_type
(
Type
g_type,
SocketFamily
family,
SocketType
type,
int
protocol)
Creation methods:
protected
SocketConnection
()
Methods:
public
bool
connect
(
SocketAddress
address,
Cancellable
? cancellable =
null
)
throws
Error
public
async
bool
connect_async
(
SocketAddress
address,
Cancellable
? cancellable =
null
)
throws
Error
public
SocketAddress
get_local_address
()
throws
Error
public
SocketAddress
get_remote_address
()
throws
Error
public
weak
Socket
get_socket
()
public
bool
is_connected
()
Inherited Members:
All known members inherited from class GLib.IOStream
closed
input_stream
output_stream
clear_pending
close
close_async
get_input_stream
get_output_stream
has_pending
is_closed
set_pending
splice_async
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count