GNetworkUnixConnection

GNetworkUnixConnection — Unix IPC connection object.

Synopsis




enum        GNetworkUnixConnectionStatus;
            GNetworkUnixConnection;
            GNetworkUnixConnectionClass;


Object Hierarchy


  GObject
   +----GNetworkUnixConnection

Implemented Interfaces

GNetworkUnixConnection implements GNetworkConnection.

Properties


  "filename"             gchararray            : Read / Write / Construct
  "socket"               gpointer              : Read / Write
  "unix-status"          GNetworkUnixConnectionStatus  : Read

Description

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.

Details

enum GNetworkUnixConnectionStatus

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.

GNetworkUnixConnection

typedef struct _GNetworkUnixConnection GNetworkUnixConnection;

This structure contains no public members.


GNetworkUnixConnectionClass

typedef struct {
} GNetworkUnixConnectionClass;

This structure contains no public members.

Property Details

The "filename" property

  "filename"             gchararray            : Read / Write / Construct

The filename of the UNIX socket in question.

Default value: NULL


The "socket" property

  "socket"               gpointer              : Read / Write

The socket file descriptor. For use by GNetworkUnixServer.


The "unix-status" property

  "unix-status"          GNetworkUnixConnectionStatus  : Read

The current status of the UNIX connection.

Default value: GNETWORK_UNIX_CONNECTION_CLOSED