mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include "Util.h"
|
||||
#include "v8world/ContactManagerSpatialHash.h"
|
||||
|
||||
#include <boost/static_assert.hpp>
|
||||
|
||||
namespace RBX {
|
||||
namespace Network {
|
||||
|
||||
const RBX::SystemAddress RakNetToRbxAddress(const RakNet::SystemAddress& raknetAddress)
|
||||
{
|
||||
return RBX::SystemAddress(raknetAddress.GetBinaryAddress(), raknetAddress.GetPort());
|
||||
}
|
||||
|
||||
std::string RakNetAddressToString(const RakNet::SystemAddress& raknetAddress, bool writePort, char portDelineator)
|
||||
{
|
||||
char buffer[30];
|
||||
raknetAddress.ToString(writePort, buffer, portDelineator);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
}} // namespace
|
||||
|
||||
Reference in New Issue
Block a user