|
Pol
Revision:cb584c9
|
#include <auxclient.h>
Inheritance diagram for Pol::Network::AuxClientThread:Public Member Functions | |
| AuxClientThread (AuxService *auxsvc, Clib::SocketListener &listener) | |
| AuxClientThread (Core::ScriptDef scriptdef, Clib::Socket &sock, Bscript::BObjectImp *params, bool assume_string) | |
| Bscript::BObjectImp * | get_ip () |
| virtual void | run () POL_OVERRIDE |
| void | transmit (const Bscript::BObjectImp *imp) |
Public Member Functions inherited from Pol::Clib::SocketClientThread | |
| SocketClientThread (SocketListener &SL) | |
| SocketClientThread (Socket &S) | |
| virtual | ~SocketClientThread () |
| void | start () |
Private Member Functions | |
| bool | init () |
| bool | ipAllowed (sockaddr MyPeer) |
| void | transmit (const std::string &msg) |
Private Attributes | |
| bool | _assume_string |
| ref_ptr< AuxConnection > | _auxconnection |
| AuxService * | _auxservice |
| Bscript::BObjectImp * | _params |
| Core::ScriptDef | _scriptdef |
| std::atomic< int > | _transmit_counter |
| weak_ptr< Core::UOExecutor > | _uoexec |
Additional Inherited Members | |
Static Public Member Functions inherited from Pol::Clib::SocketClientThread | |
| static void | start_thread (SocketClientThread *instance) |
Protected Attributes inherited from Pol::Clib::SocketClientThread | |
| Socket | _sck |
Definition at line 102 of file auxclient.h.
| Pol::Network::AuxClientThread::AuxClientThread | ( | AuxService * | auxsvc, |
| Clib::SocketListener & | listener | ||
| ) |
Definition at line 98 of file auxclient.cpp.
| Pol::Network::AuxClientThread::AuxClientThread | ( | Core::ScriptDef | scriptdef, |
| Clib::Socket & | sock, | ||
| Bscript::BObjectImp * | params, | ||
| bool | assume_string | ||
| ) |
Definition at line 109 of file auxclient.cpp.
| Bscript::BObjectImp* Pol::Network::AuxClientThread::get_ip | ( | ) |
|
private |
Definition at line 122 of file auxclient.cpp.
References _assume_string, _auxconnection, _auxservice, _params, Pol::Clib::SocketClientThread::_sck, _scriptdef, _uoexec, Pol::Clib::Socket::getpeername(), ipAllowed(), Pol::Clib::Socket::peer_address(), Pol::Network::AuxService::scriptdef(), and Pol::Core::start_script().
Referenced by run().
|
private |
Definition at line 149 of file auxclient.cpp.
References Pol::Network::AuxService::_aux_ip_match, Pol::Network::AuxService::_aux_ip_match_mask, and _auxservice.
Referenced by init().
|
virtual |
Implements Pol::Clib::SocketClientThread.
Definition at line 171 of file auxclient.cpp.
References _auxconnection, Pol::Clib::SocketClientThread::_sck, _transmit_counter, _uoexec, Pol::Clib::Socket::close(), Pol::Clib::Socket::connected(), weak_ptr< T >::exists(), Pol::Clib::exit_signalled, init(), Pol::Clib::readline(), Pol::Bscript::BObjectImp::unpack(), and Pol::Clib::writeline().
| void Pol::Network::AuxClientThread::transmit | ( | const Bscript::BObjectImp * | imp | ) |
Definition at line 227 of file auxclient.cpp.
References _transmit_counter, _uoexec, Pol::Core::NetworkManager::auxthreadpool, Pol::Bscript::BObjectImp::getStringRep(), Pol::Core::networkManager, and Pol::Bscript::BObjectImp::pack().
Referenced by Pol::Network::AuxConnection::call_method().
|
private |
Definition at line 235 of file auxclient.cpp.
References Pol::Clib::SocketClientThread::_sck, _transmit_counter, Pol::Clib::Socket::connected(), and Pol::Clib::writeline().
|
private |
Definition at line 121 of file auxclient.h.
Referenced by init().
|
private |
Definition at line 117 of file auxclient.h.
|
private |
Definition at line 116 of file auxclient.h.
Referenced by init(), and ipAllowed().
|
private |
Definition at line 120 of file auxclient.h.
Referenced by init().
|
private |
Definition at line 119 of file auxclient.h.
Referenced by init().
|
private |
Definition at line 122 of file auxclient.h.
Referenced by run(), and transmit().
|
private |
Definition at line 118 of file auxclient.h.
Referenced by init(), run(), and transmit().