![]() | ![]() | ![]() | Tentacles Reference Manual | ![]() |
---|
tnt-tcp-listener —
#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);
struct TntTcpListener { FluxTcpListener tcp_listener; TntTcpConnectionFunc *connection_func; gpointer connection_func_data; };
gboolean tnt_tcp_listener_init (TntTcpListener *tl, gint port, FluxCipher *cipher);
tl : | |
port : | |
cipher : | |
Returns : |
TntTcpListener* tnt_tcp_listener_new_with_cipher (gint port, FluxCipher *cipher);
port : | |
cipher : | |
Returns : |
void tnt_tcp_listener_set_connection_func (TntTcpListener *tl, TntTcpConnectionFunc *func, gpointer data);
tl : | |
func : | |
data : |
<< tnt-tcp-io | tnt-edge >> |