summaryrefslogtreecommitdiff
path: root/src/net/ea/network.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-11-03 10:18:25 -0700
committerJared Adams <jaxad0127@gmail.com>2009-11-03 10:18:25 -0700
commitacd557f9472c711fe92b9c158ec336abf688bf7b (patch)
tree2295d13589411ee88afe16f4997bea65b4ebba94 /src/net/ea/network.h
parentc60d3a98dbbb20621742bfd82bbaaa6b7085a8ae (diff)
downloadMana-acd557f9472c711fe92b9c158ec336abf688bf7b.tar.gz
Mana-acd557f9472c711fe92b9c158ec336abf688bf7b.tar.bz2
Mana-acd557f9472c711fe92b9c158ec336abf688bf7b.tar.xz
Mana-acd557f9472c711fe92b9c158ec336abf688bf7b.zip
Remove more _SUPPORT ifdefs and do some cleanup
Diffstat (limited to 'src/net/ea/network.h')
-rw-r--r--src/net/ea/network.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/net/ea/network.h b/src/net/ea/network.h
index 3b8d09f9..0bbcae0e 100644
--- a/src/net/ea/network.h
+++ b/src/net/ea/network.h
@@ -19,11 +19,15 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef EA_NETWORK_H
-#define EA_NETWORK_H
+#ifndef NET_EA_NETWORK_H
+#define NET_EA_NETWORK_H
#include "net/serverinfo.h"
+#include "net/ea/messagehandler.h"
+#include "net/ea/messagein.h"
+#include "net/ea/messageout.h"
+
#include <SDL_net.h>
#include <SDL_thread.h>
@@ -36,15 +40,11 @@
*/
#define CLIENT_PROTOCOL_VERSION 1
-class MessageHandler;
-class MessageIn;
+namespace EAthena {
class Network
{
public:
- friend int networkThread(void *data);
- friend class MessageOut;
-
Network();
~Network();
@@ -89,7 +89,10 @@ class Network
NET_ERROR
};
- private:
+ protected:
+ friend int networkThread(void *data);
+ friend class MessageOut;
+
static Network *instance();
void setError(const std::string &error);
@@ -122,4 +125,6 @@ class Network
static Network *mInstance;
};
-#endif
+}
+
+#endif // NET_EA_NETWORK_H