TcpClient: replaced C style function parameters with std::function
Added initialization to config Added receiving for UdpClient Removed InitWindows.cpp Laying foundation for PluginManager
This commit is contained in:
@ -45,9 +45,9 @@ struct TcpClient
|
||||
bool SendBytes(const std::vector<byte> &bytes);
|
||||
bool SendBytes(byte *bytes, uint32 lenght);
|
||||
|
||||
void SetOnDisconnectCallback(void (*func)(uint16));
|
||||
void SetOnConnectCallback(void (*func)(uint16));
|
||||
void SetOnMessageCallback(void (*func)(uint16, byte, byte, void*));
|
||||
void SetOnDisconnectCallback(std::function<void(uint16)> func);
|
||||
void SetOnConnectCallback(std::function<void(uint16)> func);
|
||||
void SetOnMessageCallback(std::function<void(uint16, byte, byte, void*)> func);
|
||||
|
||||
static const TcpClient &DefaultTcpClient();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user