#include <network.h>
Data Fields | |
enum network_connection_state | state |
time_t | last_line_sent |
Time the last line was sent to this network. | |
time_t | last_line_recvd |
Time the last line was received from this network. | |
struct irc_transport * | transport |
union { | |
struct { | |
struct tcp_server_config * current_server | |
Configuration for TCP/IP server currently connected to. | |
struct sockaddr * remote_name | |
Name of remote server. | |
struct sockaddr * local_name | |
Name of local host used for connection. | |
socklen_t namelen | |
Socket name length for remote_name and local_name. | |
char * last_disconnect_reason | |
Last reason for disconnect. | |
gint ping_id | |
Source ID for function that regularly pings the network. | |
gint connect_id | |
Source ID for function that finishes connect. | |
} tcp | |
struct { | |
void * private_data | |
struct virtual_network_ops { | |
char * name | |
gboolean not_disconnectable | |
gboolean(* init )(struct irc_network *) | |
gboolean(* to_server )(struct irc_network *, struct irc_client *c, const struct irc_line *) | |
void(* fini )(struct irc_network *) | |
} ops | |
} virtual | |
} | data |
Time the last line was sent to this network.
Time the last line was received from this network.
struct tcp_server_config* network_connection::current_server [read] |
Configuration for TCP/IP server currently connected to.
struct sockaddr* network_connection::remote_name [read] |
Name of remote server.
struct sockaddr* network_connection::local_name [read] |
Name of local host used for connection.
socklen_t network_connection::namelen |
Socket name length for remote_name and local_name.
Last reason for disconnect.
Source ID for function that regularly pings the network.
Source ID for function that finishes connect.