GNetworkUnixConnection

GNetworkUnixConnection — Unix IPC connection object.

Synopsis




enum        GNetworkUnixConnectionStatus;
struct      GNetworkUnixConnection;
struct      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_CLOSINGthe connection is shutting down.
GNETWORK_UNIX_CONNECTION_CLOSEDthe connection is closed.
GNETWORK_UNIX_CONNECTION_OPENINGthe connection is being opened.
GNETWORK_UNIX_CONNECTION_AUTHENTICATINGthe connection is authenticating.
GNETWORK_UNIX_CONNECTION_OPENthe connection is open and ready.

struct GNetworkUnixConnection

struct GNetworkUnixConnection;

This structure contains no public members.


struct GNetworkUnixConnectionClass

struct GNetworkUnixConnectionClass {

};

This structure contains no public members.

Properties

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