diff options
author | David Athay <ko2fan@gmail.com> | 2009-01-27 17:14:34 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2009-01-27 17:14:34 +0000 |
commit | fa5469bd27d117abd98ca58dad61a6378fe8215c (patch) | |
tree | 81e04d035dfc54fa9f4cca62523232ce567c9ce6 /src/net/netcomputer.hpp | |
parent | f666fd38beefb554d90503811e5a43d504a18345 (diff) | |
parent | c423c02890cfb4520da0ac75e00d1bd9f1663ce0 (diff) | |
download | manaserv-fa5469bd27d117abd98ca58dad61a6378fe8215c.tar.gz manaserv-fa5469bd27d117abd98ca58dad61a6378fe8215c.tar.bz2 manaserv-fa5469bd27d117abd98ca58dad61a6378fe8215c.tar.xz manaserv-fa5469bd27d117abd98ca58dad61a6378fe8215c.zip |
Merge branch 'master' of git@gitorious.org:tmwserv/mainline
Diffstat (limited to 'src/net/netcomputer.hpp')
-rw-r--r-- | src/net/netcomputer.hpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/net/netcomputer.hpp b/src/net/netcomputer.hpp index 2c4d706a..10ffe5ae 100644 --- a/src/net/netcomputer.hpp +++ b/src/net/netcomputer.hpp @@ -48,8 +48,7 @@ class NetComputer /** * Returns <code>true</code> if this computer is connected. */ - bool - isConnected(); + bool isConnected(); /** * Disconnects the computer from the server, after sending a message. @@ -58,8 +57,7 @@ class NetComputer * NetComputer does not know which handler is sending it * (could have been chat/game/account) */ - void - disconnect(const MessageOut &msg); + void disconnect(const MessageOut &msg); /** * Queues a message for sending to a client. @@ -77,14 +75,13 @@ class NetComputer * @param channel The channel number of which the packet should * be sent. */ - void - send(const MessageOut &msg, bool reliable = true, - unsigned int channel = 0); + void send(const MessageOut &msg, bool reliable = true, + unsigned int channel = 0); /** * Returns IP address of computer in 32bit int form */ - int getIP(); + int getIP() const; private: ENetPeer *mPeer; /**< Client peer */ |