xyginext  0.2.0
Second generation of xygine game creation framework
Classes | Public Types | Public Attributes | List of all members
xy::NetEvent Struct Referencefinal

Network event. These are used to poll NetHost and NetClient objects for network activity. More...

#include <NetData.hpp>

Classes

struct  Packet
 Event packet. Contains packet data recieved by PacketRecieved event. Not valid for other event types. More...
 

Public Types

enum  { None, ClientConnect, ClientDisconnect, PacketReceived }
 <channel event was received on
 

Public Attributes

sf::Uint8 channel = 0
 
enum xy::NetEvent:: { ... }  type = None
 <channel event was received on
 
struct XY_EXPORT_API xy::NetEvent::Packet packet
 
NetPeer peer
 Contains the peer from which this event was transmitted.
 

Detailed Description

Network event. These are used to poll NetHost and NetClient objects for network activity.