#include <ASIO.h>
|
virtual bool | sendPacket (WorldPacket &p) const |
| Send a packet to the target server.
|
|
virtual bool | init (const string &address, U16 port) |
| Init a connection to the target address:port.
|
|
virtual bool | connect (const string &address, U16 port) |
|
virtual void | disconnect () |
| Disconnect from the server.
|
|
virtual bool | isConnected () const noexcept |
| Check connection state;.
|
|
virtual void | toggleDebugOutput (bool debugOutput) noexcept |
| Toggle the printing of debug information.
|
|
virtual | ~ASIO () |
|
Definition at line 49 of file ASIO.h.
◆ LOG_CBK
◆ ~ASIO()
◆ ASIO()
◆ close()
void Divide::ASIO::close |
( |
| ) |
|
|
protected |
◆ connect()
bool Divide::ASIO::connect |
( |
const string & |
address, |
|
|
U16 |
port |
|
) |
| |
|
virtual |
Connect to target address:port only if we have a new IP:PORT combo or our connection timed out
Definition at line 72 of file ASIO.cpp.
◆ disconnect()
void Divide::ASIO::disconnect |
( |
| ) |
|
|
virtual |
Disconnect from the server.
Definition at line 33 of file ASIO.cpp.
◆ handlePacket()
virtual void Divide::ASIO::handlePacket |
( |
WorldPacket & |
p | ) |
|
|
protectedpure virtual |
◆ init()
bool Divide::ASIO::init |
( |
const string & |
address, |
|
|
U16 |
port |
|
) |
| |
|
virtual |
Init a connection to the target address:port.
Definition at line 44 of file ASIO.cpp.
◆ isConnected()
bool Divide::ASIO::isConnected |
( |
| ) |
const |
|
virtualnoexcept |
Check connection state;.
Definition at line 82 of file ASIO.cpp.
◆ LOG_PRINT()
void Divide::ASIO::LOG_PRINT |
( |
const char * |
msg, |
|
|
bool |
error = false |
|
) |
| |
|
static |
◆ sendPacket()
Send a packet to the target server.
Definition at line 93 of file ASIO.cpp.
◆ SET_LOG_FUNCTION()
void Divide::ASIO::SET_LOG_FUNCTION |
( |
const LOG_CBK & |
cbk | ) |
|
|
static |
◆ toggleDebugOutput()
void Divide::ASIO::toggleDebugOutput |
( |
bool |
debugOutput | ) |
|
|
virtualnoexcept |
Toggle the printing of debug information.
Definition at line 112 of file ASIO.cpp.
◆ Client
◆ _address
◆ _connected
bool Divide::ASIO::_connected {false} |
|
protected |
◆ _debugOutput
bool Divide::ASIO::_debugOutput {true} |
|
protected |
◆ _ioService
boost::asio::io_context Divide::ASIO::_ioService |
|
protected |
◆ _localClient
Client_uptr Divide::ASIO::_localClient |
|
protected |
◆ _port
◆ _thread
std::unique_ptr<std::thread> Divide::ASIO::_thread |
|
protected |
◆ _work
std::unique_ptr<boost::asio::io_context::work> Divide::ASIO::_work |
|
protected |
◆ s_logCBK
The documentation for this class was generated from the following files:
- G:/Divide-Framework/Source/Networking/Headers/ASIO.h
- G:/Divide-Framework/Source/Networking/ASIO.cpp