Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

KoduDiscover Class Reference

#include <KoduDiscover.h>

Inheritance diagram for KoduDiscover:

Detailed Description

Definition at line 33 of file KoduDiscover.h.

List of all members.

Public Member Functions

 KoduDiscover (player_identity &ident, const string &iface)
 ~KoduDiscover ()
void setNewRobotCallback (ident_callback new_robot, void *cb_arg)

Static Public Attributes

static map< int, player_identityplayers

Private Member Functions

void processEvent (const EventBase &event)
 for receiving events - you must override this to inherit

Static Private Member Functions

static int discover_rcv (char *buf, int size)

Static Private Attributes

static player_identity my_identity
static Socketdiscover_sock
static Socketbroadcast_sock
static void * callback_arg
static ident_callback new_robot

Constructor & Destructor Documentation

KoduDiscover::KoduDiscover ( player_identity ident,
const string &  iface 
)

Definition at line 27 of file KoduDiscover.cc.

KoduDiscover::~KoduDiscover (  ) 

Definition at line 41 of file KoduDiscover.cc.


Member Function Documentation

int KoduDiscover::discover_rcv ( char *  buf,
int  size 
) [static, private]

Definition at line 53 of file KoduDiscover.cc.

Referenced by KoduDiscover().

void KoduDiscover::processEvent ( const EventBase event  )  [private, virtual]

for receiving events - you must override this to inherit

See also:
EventRouter
Parameters:
event the event being received

Implements EventListener.

Definition at line 69 of file KoduDiscover.cc.

void KoduDiscover::setNewRobotCallback ( ident_callback  new_robot,
void *  cb_arg 
)

Definition at line 48 of file KoduDiscover.cc.


Member Data Documentation

Socket * KoduDiscover::broadcast_sock [static, private]

Definition at line 44 of file KoduDiscover.h.

Referenced by KoduDiscover(), processEvent(), and ~KoduDiscover().

void * KoduDiscover::callback_arg [static, private]

Definition at line 45 of file KoduDiscover.h.

Referenced by discover_rcv(), KoduDiscover(), and setNewRobotCallback().

Socket * KoduDiscover::discover_sock [static, private]

Definition at line 43 of file KoduDiscover.h.

Referenced by KoduDiscover(), and ~KoduDiscover().

Definition at line 42 of file KoduDiscover.h.

Referenced by discover_rcv(), KoduDiscover(), and processEvent().

Definition at line 46 of file KoduDiscover.h.

Referenced by discover_rcv(), KoduDiscover(), and setNewRobotCallback().


The documentation for this class was generated from the following files:

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:10 2016 by Doxygen 1.6.3