From a753fb1bc711e10794e939e424f3cdd703116d82 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 2 Apr 2004 12:38:41 +0000 Subject: Added support for modules to create commands - this needs a proof-of-concept module yet, do not use unless you like to live dangerously. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@351 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/connection_8h-source.html | 102 +++++++++++++++--------------- 1 file changed, 52 insertions(+), 50 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 c339f079d..114d23931 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -13,7 +13,7 @@ 00005 #include "inspircd_config.h" 00006 #include "base.h" 00007 #include <string> -00008 #include <map.h> +00008 #include <map> 00009 #include <sys/socket.h> 00010 #include <sys/types.h> 00011 #include <netdb.h> @@ -28,56 +28,58 @@ 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 +00023 #define PT_KEY_EXCHANGE 3 +00024 +00025 +00026 class packet : public classbase +00027 { +00028 public: +00029 long key; +00030 short int id; +00031 short int type; +00032 char data[MAXBUF]; +00033 +00034 packet(); +00035 ~packet(); +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 Mar 30 19:34:53 2003 for InspIRCd by +00038 +00039 class connection : public classbase +00040 { +00041 public: +00042 long key; +00043 int fd; // file descriptor +00044 char host[256]; // hostname +00045 long ip; // ipv4 address +00046 char inbuf[MAXBUF]; // recvQ +00047 long bytes_in; +00048 long bytes_out; +00049 long cmds_in; +00050 long cmds_out; +00051 bool haspassed; +00052 int port; +00053 int registered; +00054 time_t lastping; +00055 time_t signon; +00056 time_t idle_lastmsg; +00057 time_t nping; +00058 char internal_addr[1024]; +00059 +00060 connection(); +00061 bool CreateListener(char* host, int p); +00062 bool BeginLink(char* targethost, int port, char* password); +00063 void TerminateLink(char* targethost); +00064 bool SendPacket(char *message, char* host, int port, long ourkey); +00065 bool RecvPacket(char *message, char* host, int &prt, long &theirkey); +00066 bool SendSYN(char* host, int port); +00067 bool SendACK(char* host, int port, int reply_id); +00068 long GenKey(); +00069 }; +00070 +00071 +00072 #endif +00073 +
Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.2.3