29 #ifndef _ClientConnection_H__ 30 #define _ClientConnection_H__ 43 void setServerAddress(
const std::string& serverAddress );
44 void setPort(
unsigned int port );
47 virtual bool establishConnection();
48 virtual bool closeConnection();
50 void addPacket(
ENetPacket *packet, uint8_t channelID);
53 virtual void connectionClosed()=0;
56 virtual void addPeer(uint32_t peerID)
override;
57 virtual void removePeer(uint32_t peerID)
override;
59 bool disconnectConnection();
Portable internet address structure.
Definition: enet.h:82
bool established_
Definition: ClientConnection.h:62
Shared library macros, enums, constants and forward declarations for the network library ...
::std::string string
Definition: gtest-port.h:756
An ENet peer which data packets may be sent or received from.
Definition: enet.h:253
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _NetworkExport
Definition: NetworkPrereqs.h:59
bool isConnected()
Definition: ClientConnection.h:51
Definition: ClientConnection.h:38
Definition: Connection.h:92
ENetAddress * serverAddress_
Definition: ClientConnection.h:61
ENetPeer * server_
Definition: ClientConnection.h:64
ENet packet structure.
Definition: enet.h:147