![]() |
xyginext
0.2.0
Second generation of xygine game creation framework
|
A peer represents a single, multichannel connection between a client and a host. More...
#include <NetData.hpp>
Public Types | |
enum | State { Disconnected, Connecting, AcknowledingConnect, PendingConnect, Succeeded, Connected, DisconnectLater, Disconnecting, AcknowledingDisconnect, Zombie } |
<Mean round trip time in milliseconds of a reliable packet | |
Public Member Functions | |
template<typename T = _ENetPeer> | |
std::string | getAddress () const |
template<typename T = _ENetPeer> | |
sf::Uint16 | getPort () const |
<String containing the IPv4 address | |
template<typename T = _ENetPeer> | |
sf::Uint64 | getID () const |
<Port number | |
template<typename T = _ENetPeer> | |
sf::Uint32 | getRoundTripTime () const |
<Unique ID | |
template<typename T = _ENetPeer> | |
State | getState () const |
bool | operator== (const NetPeer &other) const |
<Current state of the peer | |
bool | operator!= (const NetPeer &other) const |
operator bool () const | |
template<typename T = _ENetPeer> | |
void | setPeer (T *peer) |
const void * | getPeer () const |
void | reset () |
template<> | |
std::string | getAddress () const |
template<> | |
sf::Uint16 | getPort () const |
template<> | |
sf::Uint64 | getID () const |
template<> | |
sf::Uint32 | getRoundTripTime () const |
template<> | |
NetPeer::State | getState () const |
template<> | |
void | setPeer (_ENetPeer *peer) |
A peer represents a single, multichannel connection between a client and a host.