flux-tcp-listener

flux-tcp-listener —

Synopsis




#define     FLUX_TCP_LISTENER               (object)
struct      FluxTcpListener;
gboolean    flux_tcp_listener_init          (FluxTcpListener *tl,
                                             gint port,
                                             FluxCipher *cipher);
FluxTcpListener* flux_tcp_listener_new      (gint port);
FluxTcpListener* flux_tcp_listener_new_with_cipher
                                            (gint port,
                                             FluxCipher *cipher);
void        flux_tcp_listener_finalize      (FluxObject *tl);
void        flux_tcp_listener_set_cipher    (FluxTcpListener *tl,
                                             FluxCipher *cipher);
void        flux_tcp_listener_set_connection_func
                                            (FluxTcpListener *tl,
                                             FluxTcpConnectionFunc *func,
                                             gpointer data);
gint        flux_tcp_listener_get_port      (FluxTcpListener *tl);

Description

Details

FLUX_TCP_LISTENER()

#define FLUX_TCP_LISTENER(object) ((FluxTcpListener *) object)

object :

struct FluxTcpListener

struct FluxTcpListener {

  FluxObject             object;

  GTcpSocket            *socket;
  FluxCipher            *cipher;

  guint                  read_watch_id;

  FluxTcpConnectionFunc *connection_func;
  gpointer               connection_func_data;

  guint                  spawned_object_size;
};


flux_tcp_listener_init ()

gboolean    flux_tcp_listener_init          (FluxTcpListener *tl,
                                             gint port,
                                             FluxCipher *cipher);

tl :
port :
cipher :
Returns :

flux_tcp_listener_new ()

FluxTcpListener* flux_tcp_listener_new      (gint port);

port :
Returns :

flux_tcp_listener_new_with_cipher ()

FluxTcpListener* flux_tcp_listener_new_with_cipher
                                            (gint port,
                                             FluxCipher *cipher);

port :
cipher :
Returns :

flux_tcp_listener_finalize ()

void        flux_tcp_listener_finalize      (FluxObject *tl);

tl :

flux_tcp_listener_set_cipher ()

void        flux_tcp_listener_set_cipher    (FluxTcpListener *tl,
                                             FluxCipher *cipher);

tl :
cipher :

flux_tcp_listener_set_connection_func ()

void        flux_tcp_listener_set_connection_func
                                            (FluxTcpListener *tl,
                                             FluxTcpConnectionFunc *func,
                                             gpointer data);

tl :
func :
data :

flux_tcp_listener_get_port ()

gint        flux_tcp_listener_get_port      (FluxTcpListener *tl);

tl :
Returns :