Shadowrun: Awakened 29 September 2011 - Build 871
TransportInterface.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 #ifndef __TRANSPORT_INTERFACE_H
00010 #define __TRANSPORT_INTERFACE_H
00011 
00012 #include "RakNetTypes.h"
00013 #include "Export.h"
00014 #include "RakMemoryOverride.h"
00015 
00016 #define REMOTE_MAX_TEXT_INPUT 2048
00017 
00018 namespace RakNet
00019 {
00020 
00021 class CommandParserInterface;
00022 
00023 
00026 class RAK_DLL_EXPORT TransportInterface
00027 {
00028 public:
00029     TransportInterface() {}
00030     virtual ~TransportInterface() {}
00031 
00036     virtual bool Start(unsigned short port, bool serverMode)=0;
00037 
00039     virtual void Stop(void)=0;
00040 
00047     virtual void Send( SystemAddress systemAddress, const char *data, ... )=0;
00048 
00051     virtual void CloseConnection( SystemAddress systemAddress )=0;
00052 
00058     virtual Packet* Receive( void )=0;
00059 
00062     virtual void DeallocatePacket( Packet *packet )=0;
00063 
00066     virtual SystemAddress HasNewIncomingConnection(void)=0;
00067 
00070     virtual SystemAddress HasLostConnection(void)=0;
00071 
00076     virtual CommandParserInterface* GetCommandParser(void)=0;
00077 protected:
00078 };
00079 
00080 } // namespace RakNet
00081 
00082 #endif
00083 

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net