Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

netstream_server Class Reference

#include <netstream.h>


Detailed Description

Definition at line 79 of file netstream.h.

List of all members.

Public Member Functions

 netstream_server ()
 netstream_server (unsigned int aPort, bool useDatagram=false)
 netstream_server (const IPaddr &addr, bool useDatagram=false)
 ~netstream_server ()
bool serve (unsigned int aPort, bool useDatagram=false)
bool serve (const IPaddr &addr, bool useDatagram=false)
template<class T >
bool accept (T &stream) const
 blocks until a connection is available, then transfers it to the specified stream
void close ()
bool isServing () const

Protected Attributes

IPaddr tgtAddress
bool datagram
int opsock

Static Protected Attributes

static const int BACKLOG = 5

Constructor & Destructor Documentation

netstream_server::netstream_server (  ) 

Definition at line 81 of file netstream.h.

netstream_server::netstream_server ( unsigned int  aPort,
bool  useDatagram = false 
)

Definition at line 82 of file netstream.h.

netstream_server::netstream_server ( const IPaddr addr,
bool  useDatagram = false 
)

Definition at line 83 of file netstream.h.

netstream_server::~netstream_server (  ) 

Definition at line 84 of file netstream.h.


Member Function Documentation

template<class T >
bool netstream_server::accept ( T &  stream  )  const

blocks until a connection is available, then transfers it to the specified stream

Definition at line 339 of file netstream.h.

void netstream_server::close (  ) 

Definition at line 90 of file netstream.h.

Referenced by serve(), and ~netstream_server().

bool netstream_server::isServing (  )  const

Definition at line 92 of file netstream.h.

bool netstream_server::serve ( const IPaddr addr,
bool  useDatagram = false 
)

Definition at line 101 of file netstream.cc.

bool netstream_server::serve ( unsigned int  aPort,
bool  useDatagram = false 
)

Definition at line 86 of file netstream.h.

Referenced by netstream_server(), and serve().


Member Data Documentation

const int netstream_server::BACKLOG = 5 [static, protected]

Definition at line 95 of file netstream.h.

int netstream_server::opsock [protected]

Definition at line 98 of file netstream.h.

Referenced by accept(), close(), isServing(), and serve().

Definition at line 96 of file netstream.h.

Referenced by accept(), and serve().


The documentation for this class was generated from the following files:

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:13 2016 by Doxygen 1.6.3