summaryrefslogtreecommitdiff
path: root/src/net/ipc.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-28 20:06:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-28 20:06:31 +0300
commit1c1860cf83ba5d504b69c0ebd737139c8ab1bd46 (patch)
tree93708fb9f6c0bcffa18a10590b512dd20f0183c5 /src/net/ipc.h
parentbe9b998b2ee87c0238c2ed1b41c8c2bc723f4ce4 (diff)
downloadmanaplus-1c1860cf83ba5d504b69c0ebd737139c8ab1bd46.tar.gz
manaplus-1c1860cf83ba5d504b69c0ebd737139c8ab1bd46.tar.bz2
manaplus-1c1860cf83ba5d504b69c0ebd737139c8ab1bd46.tar.xz
manaplus-1c1860cf83ba5d504b69c0ebd737139c8ab1bd46.zip
Fix formatting in net files.
Diffstat (limited to 'src/net/ipc.h')
-rw-r--r--src/net/ipc.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/net/ipc.h b/src/net/ipc.h
index 6d7f88ecc..eb2e92c9b 100644
--- a/src/net/ipc.h
+++ b/src/net/ipc.h
@@ -27,39 +27,39 @@
class IPC final
{
-public:
- /**
- * Constructor.
- */
- IPC();
+ public:
+ /**
+ * Constructor.
+ */
+ IPC();
- A_DELETE_COPY(IPC)
+ A_DELETE_COPY(IPC)
- /**
- * Destructor.
- */
- ~IPC();
+ /**
+ * Destructor.
+ */
+ ~IPC();
- bool init();
+ bool init();
- unsigned short getPort() const A_WARN_UNUSED
- { return mPort; }
+ unsigned short getPort() const A_WARN_UNUSED
+ { return mPort; }
- static int acceptLoop(void *ptr);
+ static int acceptLoop(void *ptr);
- static void start();
+ static void start();
- static void stop();
+ static void stop();
-private:
- void setPort(const unsigned short port)
- { mPort = port; }
+ private:
+ void setPort(const unsigned short port)
+ { mPort = port; }
- unsigned int mNumReqs;
- TcpNet::Socket mSocket;
- SDL_Thread *mThread;
- unsigned short mPort;
- bool mListen;
+ unsigned int mNumReqs;
+ TcpNet::Socket mSocket;
+ SDL_Thread *mThread;
+ unsigned short mPort;
+ bool mListen;
};
extern IPC *ipc;