UniSet
2.6.0
|
Классы | |
struct | CacheInfo |
struct | CacheItem |
class | pack_guard |
struct | PacketCompare |
Открытые типы | |
enum | Event { evOK, evTimeout } |
enum | UpdateStrategy { useUpdateUnknown, useUpdateThread, useUpdateEventLoop } |
typedef sigc::slot< void, const std::shared_ptr < UNetReceiver > &, Event > | EventSlot |
typedef std::priority_queue < UniSetUDP::UDPMessage, std::vector < UniSetUDP::UDPMessage > , PacketCompare > | PacketQueue |
Открытые члены | |
UNetReceiver (const std::string &host, int port, const std::shared_ptr< SMInterface > &smi, bool nocheckConnection=false) | |
void | start () |
void | stop () |
const std::string | getName () const |
void | setLockUpdate (bool st) noexcept |
bool | isLockUpdate () const noexcept |
void | resetTimeout () noexcept |
bool | isRecvOK () const noexcept |
size_t | getLostPacketsNum () const noexcept |
void | setReceiveTimeout (timeout_t msec) noexcept |
void | setReceivePause (timeout_t msec) noexcept |
void | setUpdatePause (timeout_t msec) noexcept |
void | setLostTimeout (timeout_t msec) noexcept |
void | setPrepareTime (timeout_t msec) noexcept |
void | setCheckConnectionPause (timeout_t msec) noexcept |
void | setMaxDifferens (unsigned long set) noexcept |
void | setRespondID (uniset::ObjectId id, bool invert=false) noexcept |
void | setLostPacketsID (uniset::ObjectId id) noexcept |
void | setMaxProcessingCount (int set) noexcept |
void | forceUpdate () noexcept |
std::string | getAddress () const noexcept |
int | getPort () const noexcept |
void | connectEvent (EventSlot sl) noexcept |
void | setUpdateStrategy (UpdateStrategy set) |
функция должна вызываться до первого вызова start() | |
std::shared_ptr< DebugStream > | getLog () |
virtual const std::string | getShortInfo () const noexcept |
Открытые статические члены | |
static UpdateStrategy | strToUpdateStrategy (const std::string &s) noexcept |
static std::string | to_string (UpdateStrategy s) noexcept |
Защищенные данные | |
const std::shared_ptr < SMInterface > | shm |
std::shared_ptr< DebugStream > | unetlog |
void UNetReceiver::setUpdateStrategy | ( | UNetReceiver::UpdateStrategy | set | ) |
функция должна вызываться до первого вызова start()