/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
App/include/util/SystemAddress.h
46 строк
901 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
#pragma once // RakNet doesn't namespace this - ouch namespace RBX { class SystemAddress { public: ///The peer address from inet_addr. unsigned int binaryAddress; ///The port number unsigned short port; SystemAddress() : binaryAddress(0xFFFFFFFF) , port(0xFFFF) {} SystemAddress(unsigned int binaryAddress, unsigned short port) : binaryAddress(binaryAddress) , port(port) {} bool empty() const { return binaryAddress == 0xFFFFFFFF && port == 0xFFFF; } void clear() { binaryAddress = 0xFFFFFFFF; port = 0xFFFF; } unsigned int getAddress() const { return binaryAddress; } unsigned short getPort() const { return port; } bool operator == ( const SystemAddress& right ) const; bool operator != ( const SystemAddress& right ) const; bool operator > ( const SystemAddress& right ) const; bool operator < ( const SystemAddress& right ) const; }; } // namespace