diff options
author | peterbell10 <peterbell10@live.co.uk> | 2018-02-20 18:08:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-20 18:08:46 +0100 |
commit | 1ea36298d2677733f36bae1cc6f72196c6395a4e (patch) | |
tree | bc07ed3758b8b3ec834b8d557cd710ea1e7ba270 /src/OSSupport/NetworkSingleton.h | |
parent | cBlockInfo: Deprecate direct access to variables. (#4184) (diff) | |
download | cuberite-1ea36298d2677733f36bae1cc6f72196c6395a4e.tar cuberite-1ea36298d2677733f36bae1cc6f72196c6395a4e.tar.gz cuberite-1ea36298d2677733f36bae1cc6f72196c6395a4e.tar.bz2 cuberite-1ea36298d2677733f36bae1cc6f72196c6395a4e.tar.lz cuberite-1ea36298d2677733f36bae1cc6f72196c6395a4e.tar.xz cuberite-1ea36298d2677733f36bae1cc6f72196c6395a4e.tar.zst cuberite-1ea36298d2677733f36bae1cc6f72196c6395a4e.zip |
Diffstat (limited to 'src/OSSupport/NetworkSingleton.h')
-rw-r--r-- | src/OSSupport/NetworkSingleton.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/OSSupport/NetworkSingleton.h b/src/OSSupport/NetworkSingleton.h index 902c62550..5f3c11720 100644 --- a/src/OSSupport/NetworkSingleton.h +++ b/src/OSSupport/NetworkSingleton.h @@ -24,12 +24,12 @@ // fwd: struct event_base; -class cTCPLinkImpl; -typedef std::shared_ptr<cTCPLinkImpl> cTCPLinkImplPtr; -typedef std::vector<cTCPLinkImplPtr> cTCPLinkImplPtrs; -class cServerHandleImpl; -typedef std::shared_ptr<cServerHandleImpl> cServerHandleImplPtr; -typedef std::vector<cServerHandleImplPtr> cServerHandleImplPtrs; +class cTCPLink; +typedef std::shared_ptr<cTCPLink> cTCPLinkPtr; +typedef std::vector<cTCPLinkPtr> cTCPLinkPtrs; +class cServerHandle; +typedef std::shared_ptr<cServerHandle> cServerHandlePtr; +typedef std::vector<cServerHandlePtr> cServerHandlePtrs; @@ -61,20 +61,20 @@ public: /** Adds the specified link to m_Connections. Used by the underlying link implementation when a new link is created. */ - void AddLink(cTCPLinkImplPtr a_Link); + void AddLink(cTCPLinkPtr a_Link); /** Removes the specified link from m_Connections. Used by the underlying link implementation when the link is closed / errored. */ - void RemoveLink(const cTCPLinkImpl * a_Link); + void RemoveLink(const cTCPLink * a_Link); /** Adds the specified link to m_Servers. Used by the underlying server handle implementation when a new listening server is created. Only servers that succeed in listening are added. */ - void AddServer(cServerHandleImplPtr a_Server); + void AddServer(cServerHandlePtr a_Server); /** Removes the specified server from m_Servers. Used by the underlying server handle implementation when the server is closed. */ - void RemoveServer(const cServerHandleImpl * a_Server); + void RemoveServer(const cServerHandle * a_Server); protected: @@ -82,10 +82,10 @@ protected: event_base * m_EventBase; /** Container for all client connections, including ones with pending-connect. */ - cTCPLinkImplPtrs m_Connections; + cTCPLinkPtrs m_Connections; /** Container for all servers that are currently active. */ - cServerHandleImplPtrs m_Servers; + cServerHandlePtrs m_Servers; /** Mutex protecting all containers against multithreaded access. */ cCriticalSection m_CS; |