Flux Reference Manual |
---|
flux-tcp-listener —
#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);
struct FluxTcpListener { FluxObject object; GTcpSocket *socket; FluxCipher *cipher; guint read_watch_id; FluxTcpConnectionFunc *connection_func; gpointer connection_func_data; guint spawned_object_size; };
gboolean flux_tcp_listener_init (FluxTcpListener *tl, gint port, FluxCipher *cipher);
tl : | |
port : | |
cipher : | |
Returns : |
FluxTcpListener* flux_tcp_listener_new_with_cipher (gint port, FluxCipher *cipher);
port : | |
cipher : | |
Returns : |
void flux_tcp_listener_set_cipher (FluxTcpListener *tl, FluxCipher *cipher);
tl : | |
cipher : |
void flux_tcp_listener_set_connection_func (FluxTcpListener *tl, FluxTcpConnectionFunc *func, gpointer data);
tl : | |
func : | |
data : |
<< flux-tcp-io | flux-marshaller >> |