![]() | ![]() | ![]() | Flux Reference Manual | ![]() |
---|
flux-tcp-io —
#define FLUX_TCP_IO (object) struct FluxTcpIO; FluxTcpIO* flux_tcp_io_new (void); FluxTcpIO* flux_tcp_io_new_with_cipher (FluxCipher *cipher); void flux_tcp_io_init (FluxTcpIO *tcp_io, gint fd, FluxCipher *cipher, gint read_compression_level, gint write_compression_level); void flux_tcp_io_finalize (FluxObject *tcp_io); void flux_tcp_io_connect_begin (FluxTcpIO *tcp_io, const gchar *host, guint port); void flux_tcp_io_disconnect (FluxTcpIO *tcp_io); void flux_tcp_io_set_link_func (FluxTcpIO *tcp_io, FluxTcpLinkFunc *func, gpointer data); FluxCipher* flux_tcp_io_get_cipher (FluxTcpIO *tcp_io); void flux_tcp_io_set_cipher (FluxTcpIO *tcp_io, FluxCipher *cipher); FluxTcpIOState flux_tcp_io_get_state (FluxTcpIO *tcp_io);
struct FluxTcpIO { FluxIO io; FluxTcpIOState state; FluxCipher *cipher; gint fd; guint callback_id; guint lookup_id; FluxIPAddr *remote_ip_addr; gint remote_port; /* Timestamp used for connect/disconnect timeout */ guint timestamp; /* Size of the cipher element we're currently waiting for. If zero, * the size itself is currently being read. */ guint16 cipher_element_size; guint user_connected_flag : 1, /* Backend -> user */ user_disconnected_flag : 1, /* Backend -> user */ disconnect_request_flag : 1, /* User -> backend */ have_connected_fd : 1, /* If our fd is connected */ reading_cipher_invitation : 1, reading_cipher_confirmation : 1; FluxTcpLinkFunc *link_func; gpointer link_func_data; };
FluxTcpIO* flux_tcp_io_new_with_cipher (FluxCipher *cipher);
cipher : | |
Returns : |
void flux_tcp_io_init (FluxTcpIO *tcp_io, gint fd, FluxCipher *cipher, gint read_compression_level, gint write_compression_level);
tcp_io : | |
fd : | |
cipher : | |
read_compression_level : | |
write_compression_level : |
void flux_tcp_io_connect_begin (FluxTcpIO *tcp_io, const gchar *host, guint port);
tcp_io : | |
host : | |
port : |
void flux_tcp_io_set_link_func (FluxTcpIO *tcp_io, FluxTcpLinkFunc *func, gpointer data);
tcp_io : | |
func : | |
data : |
void flux_tcp_io_set_cipher (FluxTcpIO *tcp_io, FluxCipher *cipher);
tcp_io : | |
cipher : |
FluxTcpIOState flux_tcp_io_get_state (FluxTcpIO *tcp_io);
tcp_io : | |
Returns : |
<< flux-file-io | flux-tcp-listener >> |