00001 00011 #ifndef __Platform_Network_H__ 00012 #define __Platform_Network_H__ 00013 00014 // Includes 00015 #include "Platform.h" 00016 00017 // Forward declares 00018 class Platform_Network_Server; 00019 class Platform_Network_Client; 00020 00021 // Platform_Network 00022 class Platform_Network 00023 { 00024 public: 00025 virtual ~Platform_Network() { }; 00026 00027 enum ConnectionMode 00028 { 00029 ConnectionMode_TCP, 00030 ConnectionMode_UDP, 00031 }; 00032 00033 virtual Platform_Network_Server* CreateServer( 00034 ConnectionMode mode, 00035 int port 00036 ) = 0; 00037 00038 virtual Platform_Network_Client* CreateClient( 00039 ConnectionMode mode, 00040 const char* address, 00041 int port 00042 ) = 0; 00043 }; 00044 00045 #endif /* __Platform_Network_H__ */