#include <listener.h>
Public Member Functions | |
Listener (udp::endpoint ip, int prt, bool isserv) | |
void | init () |
void | init (std::string ip) |
void | stop () |
void | join () |
void | run () |
void | kill () |
void | addMessage (Message *) |
Message * | dequeMessage () |
Listener (udp::endpoint ip, int prt, bool isserv) | |
void | init () |
void | stop () |
void | join () |
void | run () |
void | kill () |
void | addMessage (Message *) |
Message * | dequeMessage () |
Listener (udp::endpoint ip, int prt, bool isserv) | |
void | init () |
void | stop () |
void | join () |
void | run () |
void | kill () |
void | addMessage (Message *) |
Message * | dequeMessage () |
Listener (udp::endpoint ip, int prt, bool isserv) | |
void | init () |
void | init (std::string ip) |
void | stop () |
void | join () |
void | run () |
void | kill () |
void | addMessage (Message *) |
Message * | dequeMessage () |
Listener (udp::endpoint ip, int prt, bool isserv) | |
void | init () |
void | init (std::string ip) |
void | stop () |
void | join () |
void | run () |
void | kill () |
void | addMessage (Message *) |
Message * | dequeMessage () |
Public Attributes | |
std::deque< Message * > | recBuffer |
std::deque< Message * > | recBuffer |
std::deque< Message * > | recBuffer |
std::deque< Message * > | recBuffer |
std::deque< Message * > | recBuffer |
Private Member Functions | |
void | runThread () |
void | runThread () |
void | runThread () |
void | runThread () |
void | runThread () |
Private Attributes | |
udp::socket * | socket |
udp::endpoint | myIP |
int | port |
bool | isServer |
bool | quit |
boost::thread | listenerThread |
boost::mutex | quitLock |
std::string | IPAddress |
udp::socket * | socket |
udp::socket * | socket |
udp::socket * | socket |
udp::socket * | socket |
Definition at line 24 of file listener.h.
FastEcslent::Listener::Listener | ( | udp::endpoint | ip, | |
int | prt, | |||
bool | isserv | |||
) | [inline] |
FastEcslent::Listener::Listener | ( | udp::endpoint | ip, | |
int | prt, | |||
bool | isserv | |||
) | [inline] |
FastEcslent::Listener::Listener | ( | udp::endpoint | ip, | |
int | prt, | |||
bool | isserv | |||
) | [inline] |
FastEcslent::Listener::Listener | ( | udp::endpoint | ip, | |
int | prt, | |||
bool | isserv | |||
) | [inline] |
FastEcslent::Listener::Listener | ( | udp::endpoint | ip, | |
int | prt, | |||
bool | isserv | |||
) | [inline] |
void FastEcslent::Listener::runThread | ( | ) | [private] |
Definition at line 66 of file listener.cpp.
References addMessage(), IPAddress, FastEcslent::makeUDPBroadcastSocket(), FastEcslent::MaxMessageSize, port, quit, and socket.
Referenced by run().
void Listener::init | ( | void | ) |
Definition at line 21 of file listener.cpp.
Referenced by FastEcslent::NetThread::getMyIP(), FastEcslent::NetThread::init(), FastEcslent::NetLobby::init(), and init().
void Listener::init | ( | std::string | ip | ) |
void FastEcslent::Listener::stop | ( | ) |
Definition at line 106 of file listener.cpp.
References quit, and quitLock.
Referenced by FastEcslent::NetThread::stopAndJoin().
void FastEcslent::Listener::join | ( | ) |
void FastEcslent::Listener::run | ( | ) |
Definition at line 60 of file listener.cpp.
References listenerThread, and runThread().
Referenced by FastEcslent::NetThread::getMyIP(), FastEcslent::NetThread::runThread(), and FastEcslent::NetLobby::runThread().
void FastEcslent::Listener::kill | ( | ) |
Definition at line 112 of file listener.cpp.
References listenerThread, and quit.
Referenced by FastEcslent::NetThread::stopAndJoin().
void Listener::addMessage | ( | Message * | m | ) |
Message * Listener::dequeMessage | ( | ) |
Definition at line 49 of file listener.cpp.
References recBuffer.
Referenced by FastEcslent::NetThread::handleClientMessages(), FastEcslent::NetLobby::handleClientMessages(), FastEcslent::NetThread::handleServerMessages(), and FastEcslent::NetLobby::handleServerMessages().
void FastEcslent::Listener::runThread | ( | ) | [private] |
void FastEcslent::Listener::init | ( | ) |
void FastEcslent::Listener::stop | ( | ) |
void FastEcslent::Listener::join | ( | ) |
void FastEcslent::Listener::run | ( | ) |
void FastEcslent::Listener::kill | ( | ) |
void FastEcslent::Listener::addMessage | ( | Message * | ) |
Message* FastEcslent::Listener::dequeMessage | ( | ) |
void FastEcslent::Listener::runThread | ( | ) | [private] |
void FastEcslent::Listener::init | ( | ) |
void FastEcslent::Listener::stop | ( | ) |
void FastEcslent::Listener::join | ( | ) |
void FastEcslent::Listener::run | ( | ) |
void FastEcslent::Listener::kill | ( | ) |
void FastEcslent::Listener::addMessage | ( | Message * | ) |
Message* FastEcslent::Listener::dequeMessage | ( | ) |
void FastEcslent::Listener::runThread | ( | ) | [private] |
void FastEcslent::Listener::init | ( | ) |
void FastEcslent::Listener::init | ( | std::string | ip | ) |
void FastEcslent::Listener::stop | ( | ) |
void FastEcslent::Listener::join | ( | ) |
void FastEcslent::Listener::run | ( | ) |
void FastEcslent::Listener::kill | ( | ) |
void FastEcslent::Listener::addMessage | ( | Message * | ) |
Message* FastEcslent::Listener::dequeMessage | ( | ) |
void FastEcslent::Listener::runThread | ( | ) | [private] |
void FastEcslent::Listener::init | ( | ) |
void FastEcslent::Listener::init | ( | std::string | ip | ) |
void FastEcslent::Listener::stop | ( | ) |
void FastEcslent::Listener::join | ( | ) |
void FastEcslent::Listener::run | ( | ) |
void FastEcslent::Listener::kill | ( | ) |
void FastEcslent::Listener::addMessage | ( | Message * | ) |
Message* FastEcslent::Listener::dequeMessage | ( | ) |
udp::socket* FastEcslent::Listener::socket [private] |
udp::endpoint FastEcslent::Listener::myIP [private] |
int FastEcslent::Listener::port [private] |
bool FastEcslent::Listener::isServer [private] |
bool FastEcslent::Listener::quit [private] |
Definition at line 30 of file listener.h.
Referenced by init(), join(), kill(), runThread(), and stop().
boost::thread FastEcslent::Listener::listenerThread [private] |
boost::mutex FastEcslent::Listener::quitLock [private] |
std::string FastEcslent::Listener::IPAddress [private] |
std::deque<Message *> FastEcslent::Listener::recBuffer |
Definition at line 42 of file listener.h.
Referenced by addMessage(), dequeMessage(), and FastEcslent::NetThread::getMessage().
udp::socket* FastEcslent::Listener::socket [private] |
Definition at line 26 of file listener.h.
std::deque<Message *> FastEcslent::Listener::recBuffer |
Definition at line 41 of file listener.h.
udp::socket* FastEcslent::Listener::socket [private] |
Definition at line 26 of file listener.h.
std::deque<Message *> FastEcslent::Listener::recBuffer |
Definition at line 41 of file listener.h.
udp::socket* FastEcslent::Listener::socket [private] |
Definition at line 26 of file listener.h.
std::deque<Message *> FastEcslent::Listener::recBuffer |
Definition at line 42 of file listener.h.
udp::socket* FastEcslent::Listener::socket [private] |
Definition at line 26 of file listener.h.
std::deque<Message *> FastEcslent::Listener::recBuffer |
Definition at line 42 of file listener.h.