Platform_Win32_Network_Server.h
Go to the documentation of this file.00001 00011 #ifndef __Platform_Win32_Network_Server_H__ 00012 #define __Platform_Win32_Network_Server_H__ 00013 00014 // Includes 00015 #include "Platform_Network_Server.h" 00016 00017 // Forward declares 00018 class Platform_Win32_Network; 00019 00020 // Platform_Win32_Network_Server 00021 class Platform_Win32_Network_Server: public Platform_Network_Server 00022 { 00023 public: 00024 Platform_Win32_Network_Server(Platform_Win32_Network* network, Platform_Network::ConnectionMode mode, int port); 00025 virtual ~Platform_Win32_Network_Server(); 00026 00027 virtual Platform_Network::ConnectionMode GetConnectionMode(); 00028 virtual int GetPort(); 00029 00030 virtual bool Listen(); 00031 virtual bool Disconnect(); 00032 virtual bool IsListening(); 00033 virtual bool IsConnected(); 00034 00035 virtual int SendData( 00036 void* data, 00037 int size 00038 ); 00039 00040 virtual int GetReceivedSize(); 00041 virtual int GetReceivedData( 00042 void* buffer, 00043 int size 00044 ); 00045 00046 void Update(); 00047 00048 private: 00049 Platform_Win32_Network* network_; 00050 Platform_Network::ConnectionMode mode_; 00051 int port_; 00052 SOCKET socket_; 00053 bool isListening_; 00054 bool isConnected_; 00055 }; 00056 00057 00058 #endif /* __Platform_Win32_Network_Server_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
