diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-12 18:42:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-12 18:42:06 +0000 |
commit | 2cd3b57fe08b6cdae5d99021252898dedd3a0650 (patch) | |
tree | 77a8ebf2339d02c324aaa5d066913756c51d35b2 /include/connection.h | |
parent | a266dadd1351d10b56ec187c7b6f7af75350ed68 (diff) |
Structure optimizations, changed a lot of bools into binary bitmasks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1368 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/connection.h')
-rw-r--r-- | include/connection.h | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/include/connection.h b/include/connection.h index 300a83d4a..b9be696fe 100644 --- a/include/connection.h +++ b/include/connection.h @@ -216,15 +216,11 @@ class connection : public Extensible /** Hostname of connection. Not used if this is a serverrec */ - char host[256]; + char host[160]; - /** IP of connection. Reserved for future use. + /** IP of connection. */ - char ip[32]; - - /** Inbuf of connection. Only used for userrec - */ - char inbuf[MAXBUF]; + char ip[16]; /** Stats counter for bytes inbound */ @@ -254,11 +250,7 @@ class connection : public Extensible /** Used by userrec to indicate the registration status of the connection */ - int registered; - - /** Reserved for future use - */ - short int state; + short int registered; /** Time the connection was last pinged */ @@ -276,13 +268,9 @@ class connection : public Extensible */ time_t nping; - /** Unused, will be removed in a future alpha/beta - */ - char internal_addr[MAXBUF]; + //char internal_addr[MAXBUF]; - /** Unused, will be removed in a future alpha/beta - */ - int internal_port; + //int internal_port; /** With a serverrec, this is a list of all established server connections. * With a userrec this is unused. |