Leviathan game engine
Pong::PongMasterNetworking Class Reference

#include <PongMasterNetworking.h>

+ Inheritance diagram for Pong::PongMasterNetworking:

Public Member Functions

 PongMasterNetworking ()
virtual ~PongMasterNetworking ()
- Public Member Functions inherited from Leviathan::NetworkMasterServerInterface
DLLEXPORT NetworkMasterServerInterface ()
DLLEXPORT ~NetworkMasterServerInterface ()
virtual DLLEXPORT void HandleRequestPacket (const std::shared_ptr< NetworkRequest > &request, Connection &connection) override
 Called by ConnectionInfo to handle incoming packets. More...
virtual DLLEXPORT void HandleResponseOnlyPacket (const std::shared_ptr< NetworkResponse > &message, Connection &connection) override
 Called by ConnectionInfo when it receives a response without a matching request object. More...
DLLEXPORT void TickIt () override
 Should be used to update various network interfaces. More...
virtual DLLEXPORT void CloseDown () override
 Call this before shutting down the server to kick all players properly. More...
virtual DLLEXPORT std::vector< std::shared_ptr< Connection > > & GetClientConnections () override
 If this is a server returns all the clients. More...
- Public Member Functions inherited from Leviathan::NetworkInterface
DLLEXPORT NetworkInterface (NETWORKED_TYPE type)
virtual DLLEXPORT ~NetworkInterface ()
virtual DLLEXPORT bool PreHandleResponse (const std::shared_ptr< NetworkResponse > &response, SentNetworkThing *originalrequest, Connection &connection)
 Called by ConnectionInfo to verify that a response is good. More...
virtual DLLEXPORT bool CanConnectionTerminate (Connection &connection)
 Called by Connection just before terminating an inactive connection. More...
DLLEXPORT void VerifyType (NETWORKED_TYPE type) const
 Asserts if types don't match. More...
NetworkHandlerGetOwner ()

Additional Inherited Members

- Protected Member Functions inherited from Leviathan::NetworkInterface
virtual bool _CustomHandleRequestPacket (const std::shared_ptr< NetworkRequest > &request, Connection &connection)
virtual bool _CustomHandleResponseOnlyPacket (const std::shared_ptr< NetworkResponse > &message, Connection &connection)
DLLEXPORT bool _HandleDefaultRequest (const std::shared_ptr< NetworkRequest > &request, Connection &connectiontosendresult)
 Utility function for subclasses to call for default handling. More...
DLLEXPORT bool _HandleDefaultResponseOnly (const std::shared_ptr< NetworkResponse > &message, Connection &connection)
 Utility function for subclasses to call for default handling of non-request responses. More...
DLLEXPORT void SetOwner (NetworkHandler *owner)
- Protected Attributes inherited from Leviathan::NetworkInterface
NetworkHandlerOwner = nullptr

Detailed Description

Definition at line 8 of file PongMasterNetworking.h.

Constructor & Destructor Documentation

◆ PongMasterNetworking()

Pong::PongMasterNetworking::PongMasterNetworking ( )

Definition at line 8 of file PongMasterNetworking.cpp.

8  {
10 }

◆ ~PongMasterNetworking()

Pong::PongMasterNetworking::~PongMasterNetworking ( )

Definition at line 12 of file PongMasterNetworking.cpp.

12  {
14 }

The documentation for this class was generated from the following files: