Support Forum       G3D Web Page     
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
G3D::NetConnectionIterator Class Reference

Note that it is not possible to construct a NetConnectionIterator (since nothing good could happen with it), so this must be initialized with a reference, e.g.,. More...

Public Member Functions

shared_ptr< NetConnectionconnection ()
 Connection to this client. More...
 
bool isValid () const
 If the network conncetion is valid. More...
 
NetConnectionIteratoroperator++ ()
 Advance to the next connection. More...
 

Protected Member Functions

 NetConnectionIterator ()
 

Protected Attributes

shared_ptr< Queue< shared_ptr< NetConnection > > > m_queue
 
weak_ptr< NetServerm_server
 

Friends

class NetServer
 

Detailed Description

Note that it is not possible to construct a NetConnectionIterator (since nothing good could happen with it), so this must be initialized with a reference, e.g.,.

     NetConnectionIterator& client = server->newConnectionIterator(); 
 
See also
NetServer::newConnectionIterator

Constructor & Destructor Documentation

◆ NetConnectionIterator()

G3D::NetConnectionIterator::NetConnectionIterator ( )
inlineprotected

Member Function Documentation

◆ connection()

shared_ptr<NetConnection> G3D::NetConnectionIterator::connection ( )

Connection to this client.

◆ isValid()

bool G3D::NetConnectionIterator::isValid ( ) const

If the network conncetion is valid.

◆ operator++()

NetConnectionIterator& G3D::NetConnectionIterator::operator++ ( )

Advance to the next connection.

Friends And Related Function Documentation

◆ NetServer

friend class NetServer
friend

Member Data Documentation

◆ m_queue

shared_ptr< Queue< shared_ptr<NetConnection> > > G3D::NetConnectionIterator::m_queue
protected

◆ m_server

weak_ptr<NetServer> G3D::NetConnectionIterator::m_server
protected

documentation generated on Wed Nov 24 2021 08:01:58 using doxygen 1.8.15