diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-01 20:21:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-01 20:21:06 +0000 |
commit | 0ae832406f989194761528a1b8d49aa115c7fb3b (patch) | |
tree | 9cab633f2546a86e687fdefda75ab1bc24c17be3 /include/connection.h | |
parent | 62d4c43612c617eafd1a11fdf7d1778b64682812 (diff) |
Fixed <link> tags
Stability fixes/bounds checks
UDP tunneling working for server->server
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@350 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/connection.h')
-rw-r--r-- | include/connection.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/connection.h b/include/connection.h index a8f7372d9..793f6d321 100644 --- a/include/connection.h +++ b/include/connection.h @@ -20,6 +20,7 @@ #define PT_SYN_ONLY 0 #define PT_ACK_ONLY 1 #define PT_SYN_WITH_DATA 2 +#define PT_KEY_EXCHANGE 3 class packet : public classbase @@ -54,13 +55,14 @@ class connection : public classbase time_t signon; time_t idle_lastmsg; time_t nping; + char internal_addr[1024]; connection(); bool CreateListener(char* host, int p); bool BeginLink(char* targethost, int port, char* password); void TerminateLink(char* targethost); - bool SendPacket(char *message, char* host, int port); - bool RecvPacket(char *message, char* host, int &prt); + bool SendPacket(char *message, char* host, int port, long ourkey); + bool RecvPacket(char *message, char* host, int &prt, long &theirkey); bool SendSYN(char* host, int port); bool SendACK(char* host, int port, int reply_id); long GenKey(); |