tnt-tcp-listener

tnt-tcp-listener —

Synopsis




#define     TNT_TCP_LISTENER                (object)
struct      TntTcpListener;
gboolean    tnt_tcp_listener_init           (TntTcpListener *tl,
                                             gint port,
                                             FluxCipher *cipher);
TntTcpListener* tnt_tcp_listener_new        (gint port);
TntTcpListener* tnt_tcp_listener_new_with_cipher
                                            (gint port,
                                             FluxCipher *cipher);
void        tnt_tcp_listener_finalize       (FluxObject *tl);
void        tnt_tcp_listener_set_connection_func
                                            (TntTcpListener *tl,
                                             TntTcpConnectionFunc *func,
                                             gpointer data);

Description

Details

TNT_TCP_LISTENER()

#define TNT_TCP_LISTENER(object) ((TntTcpListener *) object)

object :

struct TntTcpListener

struct TntTcpListener {

  FluxTcpListener       tcp_listener;

  TntTcpConnectionFunc *connection_func;
  gpointer              connection_func_data;
};


tnt_tcp_listener_init ()

gboolean    tnt_tcp_listener_init           (TntTcpListener *tl,
                                             gint port,
                                             FluxCipher *cipher);

tl :
port :
cipher :
Returns :

tnt_tcp_listener_new ()

TntTcpListener* tnt_tcp_listener_new        (gint port);

port :
Returns :

tnt_tcp_listener_new_with_cipher ()

TntTcpListener* tnt_tcp_listener_new_with_cipher
                                            (gint port,
                                             FluxCipher *cipher);

port :
cipher :
Returns :

tnt_tcp_listener_finalize ()

void        tnt_tcp_listener_finalize       (FluxObject *tl);

tl :

tnt_tcp_listener_set_connection_func ()

void        tnt_tcp_listener_set_connection_func
                                            (TntTcpListener *tl,
                                             TntTcpConnectionFunc *func,
                                             gpointer data);

tl :
func :
data :