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

# Platform/TCPHandler.h

Go to the documentation of this file.

    00001 /**
    00002 * @file Platform/TCPHandler.h
    00003 *
    00004 * Inclusion of platform dependend process related classes and macros.
    00005 *
    00006 * @author <a href="mailto:robocup@m-wachter.de">Michael Wachter</a>
    00007 */
    00008
    00009
    00010 // APERIOS
    00011 #ifdef APERIOS1_3_2
    00012 #include "Aperios1.3.2/TCPHandler.h"
    00013
    00014 #define EXTERNAL_DEBUGGING \
    00015   NetReceiver<MessageQueue> theDebugReceiver; \
    00016   NetDebugSender theDebugSender; \
    00017   TCPHandler theTCPHandler;
    00018
    00019 #define INIT_EXTERNAL_DEBUGGING \
    00020   Process(theDebugReceiver,theDebugSender), \
    00021   theDebugReceiver(), \
    00022   theDebugSender(), \
    00023   theTCPHandler(theDebugSender,theDebugReceiver)
    00024
    00025 #define INIT_EXTERNAL_DEBUGGING_HANDLER theTCPHandler.listen(0xA1BD);
    00026 #endif
    00027
    00028
    00029 // Simulator
    00030 #ifdef _WIN32
    00031 #ifdef SIMROBOTSERVER
    00032
    00033 #include "Platform/Win32/TCPHandler.h"
    00034
    00035 #define EXTERNAL_DEBUGGING \
    00036   NetReceiver<MessageQueue> theDebugReceiver; \
    00037   NetMultiDebugSender<MessageQueue> theDebugSender; \
    00038   TCPHandler theTCPHandler;
    00039
    00040 #define INIT_EXTERNAL_DEBUGGING \
    00041   Process(theDebugReceiver,theDebugSender), \
    00042   theDebugReceiver(this,"Receiver.MessageQueue.O",false), \
    00043   theDebugSender(this,"Sender.MessageQueue.S",false), \
    00044   theTCPHandler(theDebugSender, theDebugReceiver)
    00045
    00046 #else // SIMROBOTSERVER
    00047
    00048 #define EXTERNAL_DEBUGGING DEBUGGING
    00049 #define INIT_EXTERNAL_DEBUGGING INIT_DEBUGGING
    00050
    00051 #endif // SIMROBOTSERVER
    00052
    00053 #define INIT_EXTERNAL_DEBUGGING_HANDLER
    00054
    00055 #endif // _WIN32