From 52899de0ff2d62ca0542b243c41626010bf62083 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 25 Mar 2005 03:51:56 +0000 Subject: Documentation update git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@899 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/classconnection.html | 551 ++++++++++++++++++----------------- 1 file changed, 289 insertions(+), 262 deletions(-) (limited to 'docs/module-doc/classconnection.html') diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 8e4d6222d..3eb501874 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -1,106 +1,127 @@
-
#include <connection.h>
-Inheritance diagram for connection:


Public Member Functions | |
| connection () | |
| Default constructor. | |
| bool | CreateListener (char *host, int p) |
| Create a listening socket on 'host' using port number 'p'. | |
| bool | BeginLink (char *targethost, int port, char *password, char *servername, int myport) |
| Begin an outbound link to another ircd at targethost. | |
| bool | MeshCookie (char *targethost, int port, long cookie, char *servername) |
| Begin an outbound mesh link to another ircd on a network you are already an authenticated member of. | |
| void | TerminateLink (char *targethost) |
| Terminate a link to 'targethost' by calling the ircd_connector::CloseConnection method. | |
| bool | SendPacket (char *message, const char *host) |
| Send a message to a server by name, if the server is unavailable directly route the packet via another server If the server still cannot be reached after attempting to route the message remotely, returns false. | |
| bool | RecvPacket (std::deque< std::string > &messages, char *host) |
| Returns the next available packet and returns true if data is available. | |
| ircd_connector * | FindHost (std::string host) |
| Find the ircd_connector oject related to a certain servername given in 'host'. | |
| bool | AddIncoming (int fd, char *targethost, int sourceport) |
| Add an incoming connection to the connection pool. | |
| long | GenKey () |
| This function is deprecated and may be removed in a later alpha/beta. | |
| connection () | |
| Default constructor. | |
| bool | CreateListener (char *host, int p) |
| Create a listening socket on 'host' using port number 'p'. | |
| bool | BeginLink (char *targethost, int port, char *password, char *servername, int myport) |
| Begin an outbound link to another ircd at targethost. | |
| bool | MeshCookie (char *targethost, int port, long cookie, char *servername) |
| Begin an outbound mesh link to another ircd on a network you are already an authenticated member of. | |
| void | TerminateLink (char *targethost) |
| Terminate a link to 'targethost' by calling the ircd_connector::CloseConnection method. | |
| bool | SendPacket (char *message, const char *host) |
| Send a message to a server by name, if the server is unavailable directly route the packet via another server If the server still cannot be reached after attempting to route the message remotely, returns false. | |
| bool | RecvPacket (std::deque< std::string > &messages, char *host) |
| Returns the next available packet and returns true if data is available. | |
| ircd_connector * | FindHost (std::string host) |
| Find the ircd_connector oject related to a certain servername given in 'host'. | |
| bool | AddIncoming (int fd, char *targethost, int sourceport) |
| Add an incoming connection to the connection pool. | |
| long | GenKey () |
| This function is deprecated and may be removed in a later alpha/beta. | |
Public Attributes | |
| int | fd |
| File descriptor of the connection. | |
| char | host [256] |
| Hostname of connection. | |
| char | ip [32] |
| IP of connection. | |
| char | inbuf [MAXBUF] |
| Inbuf of connection. | |
| long | bytes_in |
| Stats counter for bytes inbound. | |
| long | bytes_out |
| Stats counter for bytes outbound. | |
| long | cmds_in |
| Stats counter for commands inbound. | |
| long | cmds_out |
| Stats counter for commands outbound. | |
| bool | haspassed |
| True if server/user has authenticated, false if otherwise. | |
| int | port |
| Port number For a userrec, this is the port they connected to the network on. | |
| int | registered |
| Used by userrec to indicate the registration status of the connection. | |
| short int | state |
| Reserved for future use. | |
| time_t | lastping |
| Time the connection was last pinged. | |
| time_t | signon |
| Time the connection was created, set in the constructor. | |
| time_t | idle_lastmsg |
| Time that the connection last sent data, used to calculate idle time. | |
| time_t | nping |
| Used by PING checks with clients. | |
| char | internal_addr [MAXBUF] |
| Unused, will be removed in a future alpha/beta. | |
| int | internal_port |
| Unused, will be removed in a future alpha/beta. | |
| std::vector< ircd_connector > | connectors |
| With a serverrec, this is a list of all established server connections. | |
| int | fd |
| File descriptor of the connection. | |
| char | host [256] |
| Hostname of connection. | |
| char | ip [32] |
| IP of connection. | |
| char | inbuf [MAXBUF] |
| Inbuf of connection. | |
| long | bytes_in |
| Stats counter for bytes inbound. | |
| long | bytes_out |
| Stats counter for bytes outbound. | |
| long | cmds_in |
| Stats counter for commands inbound. | |
| long | cmds_out |
| Stats counter for commands outbound. | |
| bool | haspassed |
| True if server/user has authenticated, false if otherwise. | |
| int | port |
| Port number For a userrec, this is the port they connected to the network on. | |
| int | registered |
| Used by userrec to indicate the registration status of the connection. | |
| short int | state |
| Reserved for future use. | |
| time_t | lastping |
| Time the connection was last pinged. | |
| time_t | signon |
| Time the connection was created, set in the constructor. | |
| time_t | idle_lastmsg |
| Time that the connection last sent data, used to calculate idle time. | |
| time_t | nping |
| Used by PING checks with clients. | |
| char | internal_addr [MAXBUF] |
| Unused, will be removed in a future alpha/beta. | |
| int | internal_port |
| Unused, will be removed in a future alpha/beta. | |
| std::vector< ircd_connector > | connectors |
| With a serverrec, this is a list of all established server connections. | |
-Definition at line 161 of file connection.h.
-
| + |
Member Function Documentation-
|