summaryrefslogtreecommitdiff
path: root/src/net/ipc.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-19 18:48:34 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-19 18:48:34 +0300
commit104113ad2d968b48ded17f5d23d7c509627a509a (patch)
treee5f59f5fe84bd20bba2c7542be139b41da5312a0 /src/net/ipc.h
parente18ed69469568337283d92e38d44bfda86532b88 (diff)
downloadmanaplus-104113ad2d968b48ded17f5d23d7c509627a509a.tar.gz
manaplus-104113ad2d968b48ded17f5d23d7c509627a509a.tar.bz2
manaplus-104113ad2d968b48ded17f5d23d7c509627a509a.tar.xz
manaplus-104113ad2d968b48ded17f5d23d7c509627a509a.zip
Fix different style issues in ipc code.
Diffstat (limited to 'src/net/ipc.h')
-rw-r--r--src/net/ipc.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/net/ipc.h b/src/net/ipc.h
index 337e19ce8..b9960abce 100644
--- a/src/net/ipc.h
+++ b/src/net/ipc.h
@@ -30,19 +30,24 @@ public:
/**
* Constructor.
*/
- IPC(unsigned short port);
-
+ IPC(const unsigned short port);
+
/**
* Destructor.
*/
~IPC();
-
+
bool init();
- unsigned short port();
+
+ unsigned short getPort() const A_WARN_UNUSED
+ { return mPort; }
+
static int acceptLoop(void *ptr);
+
static void start();
+
static void stop();
-
+
private:
bool mListen;
unsigned int mNumReqs;