diff options
author | Adam <Adam@anope.org> | 2012-11-22 00:50:33 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-11-22 00:50:33 -0500 |
commit | d33a0f75a5c0c584fbb7cc0076da36d494f39494 (patch) | |
tree | 7b2274cc833c793c0f5595660cbd4d715de52ffd /include/uplink.h | |
parent | 368d469631763e9c8bf399980d0ac7c5b5664d39 (diff) |
Pretty large coding style cleanup, in source doc
cleanup, and allow protocol mods to depend on each
other
Diffstat (limited to 'include/uplink.h')
-rw-r--r-- | include/uplink.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/uplink.h b/include/uplink.h index 617a8aa1a..d635bd7d3 100644 --- a/include/uplink.h +++ b/include/uplink.h @@ -7,6 +7,7 @@ * * Based on the original code of Epona by Lara. * Based on the original code of Services by Andy Church. + * */ #ifndef UPLINK_H @@ -14,6 +15,12 @@ #include "sockets.h" +namespace Uplink +{ + extern void Connect(); +} + +/* This is the socket to our uplink */ class UplinkSocket : public ConnectionSocket, public BufferedSocket { public: @@ -22,10 +29,12 @@ class UplinkSocket : public ConnectionSocket, public BufferedSocket bool Read(const Anope::string &); void OnConnect(); void OnError(const Anope::string &); - + + /* A message sent over the uplink socket */ class CoreExport Message { private: + /* The source of the message, can be a server (Me), or any user (one of our bots) */ const Server *server; const User *user; std::stringstream buffer; |