diff options
author | Adam <Adam@anope.org> | 2012-02-14 15:13:27 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-02-14 15:13:27 -0500 |
commit | a9772cde21407c89abd161d51aff45267f87b1fb (patch) | |
tree | 9e57ba6c121d3843888917d968dd4f5d030b57cf /include/sockets.h | |
parent | 086790d6331357022f4da17c76b26b9fc6e2ad90 (diff) |
Clean up and reorganize our header files
Diffstat (limited to 'include/sockets.h')
-rw-r--r-- | include/sockets.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/sockets.h b/include/sockets.h index 126bd3f8a..eb990fd4f 100644 --- a/include/sockets.h +++ b/include/sockets.h @@ -12,6 +12,8 @@ #ifndef SOCKETS_H #define SOCKETS_H +#include <netinet/in.h> + #include "anope.h" #define NET_BUFSIZE 65535 @@ -26,7 +28,7 @@ union CoreExport sockaddrs /** Construct the object, sets everything to 0 */ - sockaddrs(); + sockaddrs(const Anope::string &address = ""); /** Memset the object to 0 */ @@ -112,10 +114,6 @@ enum SocketFlag static const Anope::string SocketFlagStrings[] = { "SF_DEAD", "SF_WRITABLE", "SF_CONNECTING", "SF_CONNECTED", "SF_ACCEPTING", "SF_ACCEPTED", "" }; -class Socket; -class ClientSocket; -class ListenSocket; -class ConnectionSocket; class CoreExport SocketIO { @@ -475,4 +473,8 @@ class CoreExport Pipe : public Socket virtual void OnNotify(); }; +extern uint32_t TotalRead; +extern uint32_t TotalWritten; +extern SocketIO normalSocketIO; + #endif // SOCKET_H |