Move Convert definitions to TcpSocket.h

This commit is contained in:
Ted John committed 2017-02-09 12:33:44 +00:00
1 parent 5787a0bf90
commit d0a05df106
3 files changed
+8 -6

No files matched your search

+2
View File
@@ -511,6 +511,8 @@ bool InitialiseWSA()
_wsaInitialised = true;
}
return _wsaInitialised;
#else
return true;
#endif
}
+6
View File
@@ -65,3 +65,9 @@ ITcpSocket * CreateTcpSocket();
bool InitialiseWSA();
void DisposeWSA();
namespace Convert
{
uint16 HostToNetwork(uint16 value);
uint16 NetworkToHost(uint16 value);
}
-6
View File
@@ -250,12 +250,6 @@ private:
uint8 * save_for_network(size_t &out_size, const std::vector<const ObjectRepositoryItem *> &objects) const;
};
namespace Convert
{
uint16 HostToNetwork(uint16 value);
uint16 NetworkToHost(uint16 value);
}
#endif // __cplusplus
#else /* DISABLE_NETWORK */
#define NETWORK_STREAM_ID "Multiplayer disabled"