From 08e384bb24398224856c44baa51b51977644de9d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 9 Feb 2003 12:49:00 +0000 Subject: Documentation update, 09/02/03 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@167 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/connection_8h-source.html | 116 ++++++++++++++++++------------ 1 file changed, 70 insertions(+), 46 deletions(-) (limited to 'docs/module-doc/connection_8h-source.html') diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index db7e86574..cfce346f5 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -8,52 +8,76 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

connection.h

Go to the documentation of this file.
00001 /*
 00002 
-00003 $Log$
-00003 Revision 1.3  2003/01/27 00:28:57  brain
-00003 ...
-00003 
-00004 Revision 1.1  2003/01/26 23:52:59  brain
-00005 Modified documentation for base classes
-00006 Added base classes
-00007 
-00008 Revision 1.1  2003/01/26 20:15:00  brain
-00009 Added server classes for linking
-00010 
-00011 
-00012 */
-00013 
-00014 #include "inspircd_config.h" 
-00015 #include "base.h"
-00016 #include <string>
-00017 #include <map.h>
-00018  
-00019 #ifndef __CONNECTION_H__ 
-00020 #define __CONNECTION_H__ 
-00021  
-00022 class connection : public classbase
-00023 {
-00024  public:
-00025         int fd;                 // file descriptor
-00026         char host[256];         // hostname
-00027         long ip;                // ipv4 address
-00028         char inbuf[MAXBUF];     // recvQ
-00029         long bytes_in;
-00030         long bytes_out;
-00031         long cmds_in;
-00032         long cmds_out;
-00033         bool haspassed;
-00034         int port;
-00035         int registered;
-00036         time_t lastping;
-00037         time_t signon;
-00038         time_t idle_lastmsg;
-00039         time_t nping;
-00040 };
-00041 
-00042 
-00043 #endif
-00044 
-

Generated on Mon Jan 27 00:23:10 2003 for InspIRCd by +00003 */ +00004 +00005 #include "inspircd_config.h" +00006 #include "base.h" +00007 #include <string> +00008 #include <map.h> +00009 #include <sys/socket.h> +00010 #include <sys/types.h> +00011 #include <netdb.h> +00012 #include <netinet/in.h> +00013 #include <unistd.h> +00014 #include <errno.h> +00015 #include <time.h> +00016 +00017 #ifndef __CONNECTION_H__ +00018 #define __CONNECTION_H__ +00019 +00020 #define PT_SYN_ONLY 0 +00021 #define PT_ACK_ONLY 1 +00022 #define PT_SYN_WITH_DATA 2 +00023 +00024 +00025 class packet : public classbase +00026 { +00027 public: +00028 long key; +00029 short int id; +00030 short int type; +00031 char data[MAXBUF]; +00032 +00033 packet(); +00034 ~packet(); +00035 }; +00036 +00037 +00038 class connection : public classbase +00039 { +00040 public: +00041 long key; +00042 int fd; // file descriptor +00043 char host[256]; // hostname +00044 long ip; // ipv4 address +00045 char inbuf[MAXBUF]; // recvQ +00046 long bytes_in; +00047 long bytes_out; +00048 long cmds_in; +00049 long cmds_out; +00050 bool haspassed; +00051 int port; +00052 int registered; +00053 time_t lastping; +00054 time_t signon; +00055 time_t idle_lastmsg; +00056 time_t nping; +00057 +00058 connection(); +00059 bool CreateListener(char* host, int p); +00060 bool BeginLink(char* targethost, int port, char* password); +00061 void TerminateLink(char* targethost); +00062 bool SendPacket(char *message, char* host, int port); +00063 bool RecvPacket(char *message, char* host, int &prt); +00064 bool SendSYN(char* host, int port); +00065 bool SendACK(char* host, int port, int reply_id); +00066 long GenKey(); +00067 }; +00068 +00069 +00070 #endif +00071 +
Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
-- cgit v1.2.3