xyginext  0.2.0
Second generation of xygine game creation framework
Public Member Functions | List of all members
xy::NetHostImpl Class Referenceabstract
Inheritance diagram for xy::NetHostImpl:
xy::EnetHostImpl

Public Member Functions

 NetHostImpl (const NetHostImpl &)=delete
 
 NetHostImpl (NetHostImpl &&)=delete
 
NetHostImploperator= (const NetHostImpl &)=delete
 
NetHostImploperator= (NetHostImpl &&)=delete
 
virtual bool start (const std::string &address, sf::Uint16 port, std::size_t maxClient, std::size_t maxChannels, sf::Uint32 incoming, sf::Uint32 outgoing)=0
 
virtual void stop ()=0
 
virtual bool pollEvent (NetEvent &)=0
 
virtual void broadcastPacket (std::uint8_t id, const void *data, std::size_t size, NetFlag flags, sf::Uint8 channel)=0
 
virtual void sendPacket (const NetPeer &peer, std::uint8_t id, const void *data, std::size_t size, NetFlag flags, sf::Uint8 channel)=0
 
virtual std::size_t getConnectedPeerCount () const =0
 
virtual std::uint32_t getAddress () const
 
virtual std::uint16_t getPort () const