#include <DDPHandler.h>
Inheritance diagram for DDPHandler:


Public Member Functions | |
| DDPHandler () | |
| ~DDPHandler () | |
| void | initDDPHandler () |
| void | updateDDPList () |
| IPAddress | getIPAddress (int number) |
| void | sendDDPPackage () |
| bool | activeTeamMembers () |
| virtual void | onReceive (void *data, int size) |
| Called when new data arrives. | |
Public Attributes | |
| DDPListEntry | list [Player::numOfPlayerNumbers-1] |
| char | teamIdentifier [16] |
Private Attributes | |
| DDPPackage | thePackage |
| unsigned long | timeLastPackage |
|
|
Definition at line 20 of file DDPHandler.cpp. References DDPListEntry::ip, list, DDPListEntry::port, timeLastPackage, and DDPListEntry::timeLastSeen. |
|
|
Definition at line 40 of file DDPHandler.h. |
|
|
Definition at line 38 of file DDPHandler.cpp. References UDPEndpoint::bind(), and DDPPORT. Referenced by UDPHandler::start(). |
Here is the call graph for this function:

|
|
Definition at line 33 of file DDPHandler.cpp. |
|
|
Definition at line 43 of file DDPHandler.cpp. |
|
|
Definition at line 98 of file DDPHandler.cpp. References DDPPORT, endl(), SystemCall::getCurrentSystemTime(), getPlayer(), Player::getPlayerNumber(), SystemCall::getRemainingPower(), Player::getTeamColor(), SystemCall::getTimeSince(), DDPPackage::playerNumber, UDPEndpoint::send(), DDPPackage::teamColor, DDPPackage::teamIdentifier, and timeLastPackage. Referenced by UDPHandler::doRegularStuff(). |
Here is the call graph for this function:

|
|
Definition at line 118 of file DDPHandler.cpp. References SystemCall::getTimeSince(), and list. Referenced by UDPHandlerEndpoint::sendPackage(). |
Here is the call graph for this function:

|
||||||||||||
|
Called when new data arrives.
Reimplemented from UDPEndpoint. Definition at line 51 of file DDPHandler.cpp. References ASSERT, Watchdog::enter(), SystemCall::getCurrentSystemTime(), getPlayer(), Player::getPlayerNumber(), Player::getTeamColor(), idText, INFO, Watchdog::leave(), and watchdog. |
Here is the call graph for this function:

|
|
Definition at line 52 of file DDPHandler.h. Referenced by activeTeamMembers(), DDPHandler(), and UDPHandlerEndpoint::onReceive(). |
|
|
Definition at line 53 of file DDPHandler.h. |
|
|
Definition at line 56 of file DDPHandler.h. |
|
|
Definition at line 57 of file DDPHandler.h. Referenced by DDPHandler(), and sendDDPPackage(). |
1.3.6