GebrCommListenSocket

GebrCommListenSocket

Functions

Properties

guint max-pending-connections Read / Write

Signals

void new-connection Action

Types and Values

Object Hierarchy

    GObject
    ╰── GebrCommSocket
        ╰── GebrCommListenSocket

Description

Functions

gebr_comm_listen_socket_is_local_port_available ()

gboolean
gebr_comm_listen_socket_is_local_port_available
                               (guint16 port);

gebr_comm_listen_socket_listen_on_port ()

gboolean
gebr_comm_listen_socket_listen_on_port
                               (guint16 port,
                                const gchar *host);

gebr_comm_listen_socket_new ()

GebrCommListenSocket *
gebr_comm_listen_socket_new (void);

gebr_comm_listen_socket_free ()

void
gebr_comm_listen_socket_free (GebrCommListenSocket *Param1);

gebr_comm_listen_socket_listen ()

gboolean
gebr_comm_listen_socket_listen (GebrCommListenSocket *listen_socket,
                                GebrCommSocketAddress *socket_address);

gebr_comm_listen_socket_set_max_pending_connections ()

void
gebr_comm_listen_socket_set_max_pending_connections
                               (GebrCommListenSocket *listen_socket,
                                guint number);

gebr_comm_listen_socket_get_max_pending_connections ()

guint
gebr_comm_listen_socket_get_max_pending_connections
                               (GebrCommListenSocket *listen_socket);

gebr_comm_listen_socket_get_next_pending_connection ()

GebrCommStreamSocket *
gebr_comm_listen_socket_get_next_pending_connection
                               (GebrCommListenSocket *listen_socket);

gebr_comm_listen_socket_get_has_pending_connections ()

gboolean
gebr_comm_listen_socket_get_has_pending_connections
                               (GebrCommListenSocket *listen_socket);

Types and Values

GEBR_COMM_LISTEN_SOCKET_TYPE

#define GEBR_COMM_LISTEN_SOCKET_TYPE		(gebr_comm_listen_socket_get_type())

struct GebrCommListenSocket

struct GebrCommListenSocket;

struct GebrCommListenSocketClass

struct GebrCommListenSocketClass {
	GebrCommSocketClass parent;

	/* signals */
	void (*new_connection) (GebrCommListenSocket * self);
};

Property Details

The “max-pending-connections” property

  “max-pending-connections”  guint

Set/Get the max pending connections.

Flags: Read / Write

Allowed values: >= 1

Default value: 30

Signal Details

The “new-connection” signal

void
user_function (GebrCommListenSocket *gebrcommlistensocket,
               gpointer              user_data)

Flags: Action