diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-19 18:48:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-19 18:48:34 +0300 |
commit | 104113ad2d968b48ded17f5d23d7c509627a509a (patch) | |
tree | e5f59f5fe84bd20bba2c7542be139b41da5312a0 /src/net/ipc.h | |
parent | e18ed69469568337283d92e38d44bfda86532b88 (diff) | |
download | mv-104113ad2d968b48ded17f5d23d7c509627a509a.tar.gz mv-104113ad2d968b48ded17f5d23d7c509627a509a.tar.bz2 mv-104113ad2d968b48ded17f5d23d7c509627a509a.tar.xz mv-104113ad2d968b48ded17f5d23d7c509627a509a.zip |
Fix different style issues in ipc code.
Diffstat (limited to 'src/net/ipc.h')
-rw-r--r-- | src/net/ipc.h | 15 |
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; |