![]() |
![]() |
![]() |
GIO Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
GTcpWrapperConnectionGTcpWrapperConnection — wrapper for non-GSocketConnection-based, GSocket-based GIOStreams |
GTcpWrapperConnection; GSocketConnection * g_tcp_wrapper_connection_new (GIOStream *base_io_stream, GSocket *socket); GIOStream * g_tcp_wrapper_connection_get_base_io_stream (GTcpWrapperConnection *conn);
A GTcpWrapperConnection can be used to wrap a GIOStream that is based on a GSocket, but which is not actually a GSocketConnection. This is used by GSocketClient so that it can always return a GSocketConnection, even when the connection it has actually created is not directly a GSocketConnection.
typedef struct { GTcpConnection parent_instance; GTcpWrapperConnectionPrivate *priv; } GTcpWrapperConnection;
GSocketConnection * g_tcp_wrapper_connection_new (GIOStream *base_io_stream, GSocket *socket);
Wraps base_io_stream
and socket
together as a GSocketConnection.
|
the GIOStream to wrap |
|
the GSocket associated with base_io_stream
|
Returns : |
the new GSocketConnection. |
Since 2.28
GIOStream * g_tcp_wrapper_connection_get_base_io_stream (GTcpWrapperConnection *conn);
Get's conn
's base GIOStream
|
a GTcpWrapperConnection |
Returns : |
conn 's base GIOStream. transfer none. |