]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - docs/man/man3/connection.3
Re-added the dot graphs again
[user/henk/code/inspircd.git] / docs / man / man3 / connection.3
index c6b3430059cb1415f18b18f46a03eea2a6ffab04..089bd108e8061d0ddcd73bd6c32af1a0c16d8e3f 100644 (file)
@@ -1,8 +1,8 @@
-.TH "connection" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "connection" 3 "13 May 2005" "InspIRCd" \" -*- nroff -*-
 .ad l
 .nh
 .SH NAME
-connection \- Please note: classes serverrec and userrec both inherit from class connection. 
+connection \- Please note: classes serverrec and userrec both inherit from class connection.  
 
 .PP
 .SH SYNOPSIS
@@ -20,43 +20,39 @@ Inherited by \fBserverrec\fP, and \fBuserrec\fP.
 .ti -1c
 .RI "\fBconnection\fP ()"
 .br
-.RI "\fIDefault constructor.\fP"
+.RI "\fIDefault constructor. \fP"
 .ti -1c
 .RI "bool \fBCreateListener\fP (char *\fBhost\fP, int p)"
 .br
-.RI "\fICreate a listening socket on 'host' using port number 'p'.\fP"
+.RI "\fICreate a listening socket on 'host' using port number 'p'. \fP"
 .ti -1c
 .RI "bool \fBBeginLink\fP (char *targethost, int \fBport\fP, char *password, char *servername, int myport)"
 .br
-.RI "\fIBegin an outbound link to another ircd at targethost.\fP"
+.RI "\fIBegin an outbound link to another ircd at targethost. \fP"
 .ti -1c
-.RI "bool \fBMeshCookie\fP (char *targethost, int \fBport\fP, long cookie, char *servername)"
+.RI "bool \fBMeshCookie\fP (char *targethost, int \fBport\fP, unsigned long cookie, char *servername)"
 .br
-.RI "\fIBegin an outbound mesh link to another ircd on a network you are already an authenticated member of.\fP"
+.RI "\fIBegin an outbound mesh link to another ircd on a network you are already an authenticated member of. \fP"
 .ti -1c
 .RI "void \fBTerminateLink\fP (char *targethost)"
 .br
-.RI "\fITerminate a link to 'targethost' by calling the \fBircd_connector::CloseConnection\fP method.\fP"
+.RI "\fITerminate a link to 'targethost' by calling the \fBircd_connector::CloseConnection\fP method. \fP"
 .ti -1c
 .RI "bool \fBSendPacket\fP (char *message, const char *\fBhost\fP)"
 .br
-.RI "\fISend 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.\fP"
+.RI "\fISend 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. \fP"
 .ti -1c
 .RI "bool \fBRecvPacket\fP (std::deque< std::string > &messages, char *\fBhost\fP)"
 .br
-.RI "\fIReturns the next available packet and returns true if data is available.\fP"
+.RI "\fIReturns the next available packet and returns true if data is available. \fP"
 .ti -1c
 .RI "\fBircd_connector\fP * \fBFindHost\fP (std::string \fBhost\fP)"
 .br
-.RI "\fIFind the \fBircd_connector\fP oject related to a certain servername given in 'host'.\fP"
+.RI "\fIFind the \fBircd_connector\fP oject related to a certain servername given in 'host'. \fP"
 .ti -1c
 .RI "bool \fBAddIncoming\fP (int \fBfd\fP, char *targethost, int sourceport)"
 .br
-.RI "\fIAdd an incoming connection to the connection pool.\fP"
-.ti -1c
-.RI "long \fBGenKey\fP ()"
-.br
-.RI "\fIThis function is deprecated and may be removed in a later alpha/beta.\fP"
+.RI "\fIAdd an incoming connection to the connection pool. \fP"
 .in -1c
 .SS "Public Attributes"
 
@@ -64,200 +60,173 @@ Inherited by \fBserverrec\fP, and \fBuserrec\fP.
 .ti -1c
 .RI "int \fBfd\fP"
 .br
-.RI "\fIFile descriptor of the connection.\fP"
+.RI "\fIFile descriptor of the connection. \fP"
 .ti -1c
-.RI "char \fBhost\fP [256]"
+.RI "char \fBhost\fP [160]"
 .br
-.RI "\fIHostname of connection.\fP"
+.RI "\fIHostname of connection. \fP"
 .ti -1c
-.RI "char \fBip\fP [32]"
+.RI "char \fBip\fP [16]"
 .br
-.RI "\fIIP of connection.\fP"
-.ti -1c
-.RI "char \fBinbuf\fP [MAXBUF]"
-.br
-.RI "\fIInbuf of connection.\fP"
+.RI "\fIIP of connection. \fP"
 .ti -1c
 .RI "long \fBbytes_in\fP"
 .br
-.RI "\fIStats counter for bytes inbound.\fP"
+.RI "\fIStats counter for bytes inbound. \fP"
 .ti -1c
 .RI "long \fBbytes_out\fP"
 .br
-.RI "\fIStats counter for bytes outbound.\fP"
+.RI "\fIStats counter for bytes outbound. \fP"
 .ti -1c
 .RI "long \fBcmds_in\fP"
 .br
-.RI "\fIStats counter for commands inbound.\fP"
+.RI "\fIStats counter for commands inbound. \fP"
 .ti -1c
 .RI "long \fBcmds_out\fP"
 .br
-.RI "\fIStats counter for commands outbound.\fP"
+.RI "\fIStats counter for commands outbound. \fP"
 .ti -1c
 .RI "bool \fBhaspassed\fP"
 .br
-.RI "\fITrue if server/user has authenticated, false if otherwise.\fP"
+.RI "\fITrue if server/user has authenticated, false if otherwise. \fP"
 .ti -1c
 .RI "int \fBport\fP"
 .br
-.RI "\fIPort number For a userrec, this is the port they connected to the network on.\fP"
+.RI "\fIPort number For a userrec, this is the port they connected to the network on. \fP"
 .ti -1c
-.RI "int \fBregistered\fP"
+.RI "char \fBregistered\fP"
 .br
-.RI "\fIUsed by userrec to indicate the registration status of the connection.\fP"
-.ti -1c
-.RI "short int \fBstate\fP"
-.br
-.RI "\fIReserved for future use.\fP"
+.RI "\fIUsed by userrec to indicate the registration status of the connection. \fP"
 .ti -1c
 .RI "time_t \fBlastping\fP"
 .br
-.RI "\fITime the connection was last pinged.\fP"
+.RI "\fITime the connection was last pinged. \fP"
 .ti -1c
 .RI "time_t \fBsignon\fP"
 .br
-.RI "\fITime the connection was created, set in the constructor.\fP"
+.RI "\fITime the connection was created, set in the constructor. \fP"
 .ti -1c
 .RI "time_t \fBidle_lastmsg\fP"
 .br
-.RI "\fITime that the connection last sent data, used to calculate idle time.\fP"
+.RI "\fITime that the connection last sent data, used to calculate idle time. \fP"
 .ti -1c
 .RI "time_t \fBnping\fP"
 .br
-.RI "\fIUsed by PING checks with clients.\fP"
-.ti -1c
-.RI "char \fBinternal_addr\fP [MAXBUF]"
-.br
-.RI "\fIUnused, will be removed in a future alpha/beta.\fP"
-.ti -1c
-.RI "int \fBinternal_port\fP"
-.br
-.RI "\fIUnused, will be removed in a future alpha/beta.\fP"
+.RI "\fIUsed by PING checks with clients. \fP"
 .ti -1c
 .RI "std::vector< \fBircd_connector\fP > \fBconnectors\fP"
 .br
-.RI "\fIWith a serverrec, this is a list of all established server connections.\fP"
+.RI "\fIWith a serverrec, this is a list of all established server connections. \fP"
 .in -1c
 .SH "Detailed Description"
 .PP 
-Please note: classes serverrec and userrec both inherit from class connection.Definition at line 161 of file connection.h.
+Please note: classes serverrec and userrec both inherit from class connection. Definition at line 210 of file connection.h.
 .SH "Constructor & Destructor Documentation"
 .PP 
 .SS "connection::connection ()"
 .PP
-Default constructor.
+Default constructor. 
 .SH "Member Function Documentation"
 .PP 
 .SS "bool connection::AddIncoming (int fd, char * targethost, int sourceport)"
 .PP
-Add an incoming connection to the connection pool.(reserved for core use)
+Add an incoming connection to the connection pool. (reserved for core use)
 .SS "bool connection::BeginLink (char * targethost, int port, char * password, char * servername, int myport)"
 .PP
-Begin an outbound link to another ircd at targethost.
+Begin an outbound link to another ircd at targethost. 
 .SS "bool connection::CreateListener (char * host, int p)"
 .PP
-Create a listening socket on 'host' using port number 'p'.
+Create a listening socket on 'host' using port number 'p'. 
 .SS "\fBircd_connector\fP* connection::FindHost (std::string host)"
 .PP
-Find the \fBircd_connector\fP oject related to a certain servername given in 'host'.
-.SS "long connection::GenKey ()"
-.PP
-This function is deprecated and may be removed in a later alpha/beta.
-.SS "bool connection::MeshCookie (char * targethost, int port, long cookie, char * servername)"
+Find the \fBircd_connector\fP oject related to a certain servername given in 'host'. 
+.SS "bool connection::MeshCookie (char * targethost, int port, unsigned long cookie, char * servername)"
 .PP
-Begin an outbound mesh link to another ircd on a network you are already an authenticated member of.
+Begin an outbound mesh link to another ircd on a network you are already an authenticated member of. 
 .SS "bool connection::RecvPacket (std::deque< std::string > & messages, char * host)"
 .PP
-Returns the next available packet and returns true if data is available.Writes the servername the data came from to 'host'. If no data is available this function returns false. This function will automatically close broken links and reroute pathways, generating split messages on the network.
+Returns the next available packet and returns true if data is available. Writes the servername the data came from to 'host'. If no data is available this function returns false. This function will automatically close broken links and reroute pathways, generating split messages on the network.
 .SS "bool connection::SendPacket (char * message, const char * host)"
 .PP
-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.
+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. 
 .SS "void connection::TerminateLink (char * targethost)"
 .PP
-Terminate a link to 'targethost' by calling the \fBircd_connector::CloseConnection\fP method.
+Terminate a link to 'targethost' by calling the \fBircd_connector::CloseConnection\fP method. 
 .SH "Member Data Documentation"
 .PP 
-.SS "long connection::bytes_in"
+.SS "long \fBconnection::bytes_in\fP"
 .PP
-Stats counter for bytes inbound.Definition at line 182 of file connection.h.
+Stats counter for bytes inbound. Definition at line 227 of file connection.h.
 .PP
 Referenced by userrec::userrec().
-.SS "long connection::bytes_out"
+.SS "long \fBconnection::bytes_out\fP"
 .PP
-Stats counter for bytes outbound.Definition at line 186 of file connection.h.
+Stats counter for bytes outbound. Definition at line 231 of file connection.h.
 .PP
-Referenced by userrec::userrec().
-.SS "long connection::cmds_in"
+Referenced by userrec::FlushWriteBuf(), and userrec::userrec().
+.SS "long \fBconnection::cmds_in\fP"
 .PP
-Stats counter for commands inbound.Definition at line 190 of file connection.h.
+Stats counter for commands inbound. Definition at line 235 of file connection.h.
 .PP
 Referenced by userrec::userrec().
-.SS "long connection::cmds_out"
+.SS "long \fBconnection::cmds_out\fP"
 .PP
-Stats counter for commands outbound.Definition at line 194 of file connection.h.
+Stats counter for commands outbound. Definition at line 239 of file connection.h.
 .PP
-Referenced by userrec::userrec().
-.SS "std::vector<\fBircd_connector\fP> connection::connectors"
+Referenced by userrec::FlushWriteBuf(), and userrec::userrec().
+.SS "std::vector<\fBircd_connector\fP> \fBconnection::connectors\fP"
 .PP
-With a serverrec, this is a list of all established server connections.With a userrec this is unused.Definition at line 241 of file connection.h.
-.SS "int connection::fd"
+With a serverrec, this is a list of all established server connections. With a userrec this is unused.Definition at line 274 of file connection.h.
+.SS "int \fBconnection::fd\fP"
 .PP
-File descriptor of the connection.Definition at line 166 of file connection.h.
+File descriptor of the connection. Definition at line 215 of file connection.h.
 .PP
-Referenced by Server::SendTo(), serverrec::serverrec(), and userrec::userrec().
-.SS "bool connection::haspassed"
+Referenced by ConfigReader::DumpErrors(), Server::PseudoToUser(), Server::SendTo(), serverrec::serverrec(), userrec::userrec(), and Server::UserToPseudo().
+.SS "bool \fBconnection::haspassed\fP"
 .PP
-True if server/user has authenticated, false if otherwise.Definition at line 198 of file connection.h.
+True if server/user has authenticated, false if otherwise. Definition at line 243 of file connection.h.
 .PP
 Referenced by userrec::userrec().
-.SS "char connection::host[256]"
+.SS "char \fBconnection::host\fP[160]"
 .PP
-Hostname of connection.Not used if this is a serverrecDefinition at line 170 of file connection.h.
-.SS "time_t connection::idle_lastmsg"
+Hostname of connection. Not used if this is a serverrecDefinition at line 219 of file connection.h.
 .PP
-Time that the connection last sent data, used to calculate idle time.Definition at line 224 of file connection.h.
+Referenced by userrec::GetFullRealHost(), Server::PseudoToUser(), userrec::userrec(), and Server::UserToPseudo().
+.SS "time_t \fBconnection::idle_lastmsg\fP"
 .PP
-Referenced by userrec::userrec().
-.SS "char connection::inbuf[MAXBUF]"
+Time that the connection last sent data, used to calculate idle time. Definition at line 265 of file connection.h.
 .PP
-Inbuf of connection.Only used for userrecDefinition at line 178 of file connection.h.
-.SS "char connection::internal_addr[MAXBUF]"
-.PP
-Unused, will be removed in a future alpha/beta.Definition at line 232 of file connection.h.
-.SS "int connection::internal_port"
+Referenced by userrec::userrec().
+.SS "char \fBconnection::ip\fP[16]"
 .PP
-Unused, will be removed in a future alpha/beta.Definition at line 236 of file connection.h.
-.SS "char connection::ip[32]"
+IP of connection. Definition at line 223 of file connection.h.
 .PP
-IP of connection.Reserved for future use.Definition at line 174 of file connection.h.
-.SS "time_t connection::lastping"
+Referenced by userrec::userrec().
+.SS "time_t \fBconnection::lastping\fP"
 .PP
-Time the connection was last pinged.Definition at line 216 of file connection.h.
+Time the connection was last pinged. Definition at line 257 of file connection.h.
 .PP
 Referenced by serverrec::serverrec(), and userrec::userrec().
-.SS "time_t connection::nping"
+.SS "time_t \fBconnection::nping\fP"
 .PP
-Used by PING checks with clients.Definition at line 228 of file connection.h.
+Used by PING checks with clients. Definition at line 269 of file connection.h.
 .PP
 Referenced by userrec::userrec().
-.SS "int connection::port"
+.SS "int \fBconnection::port\fP"
 .PP
-Port number For a userrec, this is the port they connected to the network on.For a serverrec this is the current listening port of the serverrec object.Definition at line 204 of file connection.h.
+Port number For a userrec, this is the port they connected to the network on. For a serverrec this is the current listening port of the serverrec object.Definition at line 249 of file connection.h.
 .PP
 Referenced by userrec::userrec().
-.SS "int connection::registered"
+.SS "char \fBconnection::registered\fP"
 .PP
-Used by userrec to indicate the registration status of the connection.Definition at line 208 of file connection.h.
+Used by userrec to indicate the registration status of the connection. Definition at line 253 of file connection.h.
 .PP
 Referenced by userrec::userrec().
-.SS "time_t connection::signon"
+.SS "time_t \fBconnection::signon\fP"
 .PP
-Time the connection was created, set in the constructor.Definition at line 220 of file connection.h.
+Time the connection was created, set in the constructor. Definition at line 261 of file connection.h.
 .PP
 Referenced by serverrec::serverrec(), and userrec::userrec().
-.SS "short int connection::state"
-.PP
-Reserved for future use.Definition at line 212 of file connection.h.
 
 .SH "Author"
 .PP