Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# Platform/Aperios1.3.2/UDPBroadcastHandler.h

Go to the documentation of this file.

    00001 /**
    00002 * @file  Platform/Aperios1.3.2/UDPHandler.h
    00003 *
    00004 * Class for using NetReceivers for receiving UDP-Broadcasts
    00005 *
    00006 * @author <A href=mailto:robocup@m-wachter.de>Michael Wachter</A>
    00007 *
    00008 */
    00009
    00010
    00011 #ifndef _UDPBroadcastHandler_H_
    00012 #define _UDPBroadcastHandler_H_
    00013
    00014 #include "UDPEndpoint.h"
    00015 #include "NetHandler.h"
    00016 #include "NetSender.h"
    00017 #include "NetReceiver.h"
    00018 #include "Tools/Player.h"
    00019 #include "NetConfig.h"
    00020
    00021
    00022 class UDPBroadcastHandler: public UDPEndpoint, public NetHandler
    00023 {
    00024 public:
    00025     UDPBroadcastHandler();
    00026   void start(NetReceiverBase& theReceiver, int port);
    00027   virtual void onReceive(void* data,int size);
    00028
    00029 private:
    00030     NetReceiverBase* receiver;
    00031 };
    00032
    00033 #endif