GebrCommSocket

GebrCommSocket

Synopsis

#define             GEBR_COMM_SOCKET_TYPE
struct              GebrCommSocket;
struct              GebrCommSocketClass;
void                gebr_comm_socket_close              (GebrCommSocket *Param1);
void                gebr_comm_socket_flush              (GebrCommSocket *Param1);
void                gebr_comm_socket_set_blocking       (GebrCommSocket *Param1,
                                                         gboolean Param2);
enum GebrCommSocketState  gebr_comm_socket_get_state    (GebrCommSocket *Param1);
enum GebrCommSocketError  gebr_comm_socket_get_last_error
                                                        (GebrCommSocket *Param1);
GebrCommSocketAddress  gebr_comm_socket_get_address     (GebrCommSocket *Param1);
gulong              gebr_comm_socket_bytes_available    (GebrCommSocket *Param1);
gulong              gebr_comm_socket_bytes_to_write     (GebrCommSocket *Param1);
GByteArray *        gebr_comm_socket_read               (GebrCommSocket *Param1,
                                                         gsize Param2);
GString *           gebr_comm_socket_read_string        (GebrCommSocket *Param1,
                                                         gsize Param2);
GByteArray *        gebr_comm_socket_read_all           (GebrCommSocket *Param1);
GString *           gebr_comm_socket_read_string_all    (GebrCommSocket *Param1);
void                gebr_comm_socket_write              (GebrCommSocket *Param1,
                                                         GByteArray *Param2);
void                gebr_comm_socket_write_string       (GebrCommSocket *Param1,
                                                         GString *Param2);
void                gebr_comm_socket_write_immediately  (GebrCommSocket *Param1,
                                                         GByteArray *Param2);
void                gebr_comm_socket_write_string_immediately
                                                        (GebrCommSocket *Param1,
                                                         GString *Param2);

Object Hierarchy

  GObject
   +----GebrCommSocket
         +----GebrCommChannelSocket
         +----GebrCommListenSocket
         +----GebrCommStreamSocket

Signals

  "error"                                          : Action
  "ready-read"                                     : Action
  "ready-write"                                    : Action

Description

Details

GEBR_COMM_SOCKET_TYPE

#define GEBR_COMM_SOCKET_TYPE			(gebr_comm_socket_get_type())

struct GebrCommSocket

struct GebrCommSocket;

struct GebrCommSocketClass

struct GebrCommSocketClass {
	GObjectClass parent;

	/* virtual */
	void (*connected) (GebrCommSocket * self);
	void (*disconnected) (GebrCommSocket * self);
	void (*new_connection) (GebrCommSocket * self);
	/* signals */
	void (*ready_read) (GebrCommSocket * self);
	void (*ready_write) (GebrCommSocket * self);
	void (*error) (GebrCommSocket * self, enum GebrCommSocketError error);
};

gebr_comm_socket_close ()

void                gebr_comm_socket_close              (GebrCommSocket *Param1);

gebr_comm_socket_flush ()

void                gebr_comm_socket_flush              (GebrCommSocket *Param1);

gebr_comm_socket_set_blocking ()

void                gebr_comm_socket_set_blocking       (GebrCommSocket *Param1,
                                                         gboolean Param2);

gebr_comm_socket_get_state ()

enum GebrCommSocketState  gebr_comm_socket_get_state    (GebrCommSocket *Param1);

gebr_comm_socket_get_last_error ()

enum GebrCommSocketError  gebr_comm_socket_get_last_error
                                                        (GebrCommSocket *Param1);

gebr_comm_socket_get_address ()

GebrCommSocketAddress  gebr_comm_socket_get_address     (GebrCommSocket *Param1);

gebr_comm_socket_bytes_available ()

gulong              gebr_comm_socket_bytes_available    (GebrCommSocket *Param1);

gebr_comm_socket_bytes_to_write ()

gulong              gebr_comm_socket_bytes_to_write     (GebrCommSocket *Param1);

gebr_comm_socket_read ()

GByteArray *        gebr_comm_socket_read               (GebrCommSocket *Param1,
                                                         gsize Param2);

gebr_comm_socket_read_string ()

GString *           gebr_comm_socket_read_string        (GebrCommSocket *Param1,
                                                         gsize Param2);

gebr_comm_socket_read_all ()

GByteArray *        gebr_comm_socket_read_all           (GebrCommSocket *Param1);

gebr_comm_socket_read_string_all ()

GString *           gebr_comm_socket_read_string_all    (GebrCommSocket *Param1);

gebr_comm_socket_write ()

void                gebr_comm_socket_write              (GebrCommSocket *Param1,
                                                         GByteArray *Param2);

gebr_comm_socket_write_string ()

void                gebr_comm_socket_write_string       (GebrCommSocket *Param1,
                                                         GString *Param2);

gebr_comm_socket_write_immediately ()

void                gebr_comm_socket_write_immediately  (GebrCommSocket *Param1,
                                                         GByteArray *Param2);

gebr_comm_socket_write_string_immediately ()

void                gebr_comm_socket_write_string_immediately
                                                        (GebrCommSocket *Param1,
                                                         GString *Param2);

Signal Details

The "error" signal

void                user_function                      (GebrCommSocket *gebrcommsocket,
                                                        gint            arg1,
                                                        gpointer        user_data)           : Action

The "ready-read" signal

void                user_function                      (GebrCommSocket *gebrcommsocket,
                                                        gpointer        user_data)           : Action

The "ready-write" signal

void                user_function                      (GebrCommSocket *gebrcommsocket,
                                                        gpointer        user_data)           : Action