Cogs.Foundation
Loading...
Searching...
No Matches
Network.h
Go to the documentation of this file.
1#pragma once
2
3#if !defined( EMSCRIPTEN )
4
5#include "../FoundationBase.h"
6
7namespace Cogs {
8 namespace Network {
9 class ConnectionBase;
10
17 COGSFOUNDATION_API void addConnection(ConnectionBase* connection);
18
27 COGSFOUNDATION_API void removeConnection(ConnectionBase* connection);
28
33 }
34}
35
36#endif
#define COGSFOUNDATION_API
Definition: FoundationBase.h:31
COGSFOUNDATION_API void addConnection(ConnectionBase *connection)
Adds the specified connection to the list of managed connections.
Definition: Network.cpp:33
COGSFOUNDATION_API void removeConnection(ConnectionBase *connection)
Flags the specified connection for removal from the list of managed connections.
Definition: Network.cpp:53
COGSFOUNDATION_API void closedown()
Flags the network thread to terminate, and waits until it has done so.
Definition: Network.cpp:85
Main Cogs namespace.
Definition: MortonCode.h:5