#ifndef DANBIASSERVER_NETWORK_SESSION_H #define DANBIASSERVER_NETWORK_SESSION_H #define NOMINMAX #include "Utilities.h" #include #include #include namespace DanBias { class ClientObject; class NetworkSession { public: struct ClientEvent { ClientObject* reciever; Oyster::Network::CustomNetProtocol protocol; ClientEvent() { reciever = 0; } ~ClientEvent() { } }; public: NetworkSession(); ~NetworkSession(); void AttachClient(Utility::DynamicMemory::SmartPointer client); void DetachClient(short ID); void DetachClient(); void Kick(); void Send(Oyster::Network::CustomNetProtocol& protocol); void Send(Oyster::Network::CustomNetProtocol& protocol, int ID); //TODO: Do more lobby features protected: std::vector> clients; Oyster::PostBox box; }; }//End namespace DanBias #endif // !DANBIASSERVER_NETWORK_SESSION_H