| GNetwork Library Manual |
|---|
GNetworkUnixConnection — Unix IPC connection object.
enum GNetworkUnixConnectionStatus; struct GNetworkUnixConnection; struct GNetworkUnixConnectionClass;
"filename" gchararray : Read / Write / Construct "socket" gpointer : Read / Write "unix-status" GNetworkUnixConnectionStatus : Read
The GnetworkUnixConnection object is used for stream-based Unix sockets, and operate similar to TCP/IP connections. A GNetworkUnixConnection would typically be subclassed to create a specific type of local networking connection.
typedef enum /* <prefix=GNETWORK_UNIX_CONNECTION> */
{
GNETWORK_UNIX_CONNECTION_CLOSING,
GNETWORK_UNIX_CONNECTION_CLOSED,
GNETWORK_UNIX_CONNECTION_OPENING,
GNETWORK_UNIX_CONNECTION_AUTHENTICATING,
GNETWORK_UNIX_CONNECTION_OPEN
}
GNetworkUnixConnectionStatus;
An enumeration of the possible states a UNIX socket connection can be in.
| GNETWORK_UNIX_CONNECTION_CLOSING | the connection is shutting down. |
| GNETWORK_UNIX_CONNECTION_CLOSED | the connection is closed. |
| GNETWORK_UNIX_CONNECTION_OPENING | the connection is being opened. |
| GNETWORK_UNIX_CONNECTION_AUTHENTICATING | the connection is authenticating. |
| GNETWORK_UNIX_CONNECTION_OPEN | the connection is open and ready. |
struct GNetworkUnixConnection;
This structure contains no public members.
| "filename" (gchararray : Read / Write / Construct) | The filename of the UNIX socket in question. |
| "socket" (gpointer : Read / Write) | The socket file descriptor. For use by GNetworkUnixServer. |
| "unix-status" (GNetworkUnixConnectionStatus : Read) | The current status of the UNIX connection. |
| << GNetworkTcpConnection | GNetworkServer >> |