Electronics and Software
Engineering Innovation
BMeasure-lib 1.3.0
BMeasureApi::CommsNet Class Reference

#include <CommsNet.h>

Inheritance diagram for BMeasureApi::CommsNet:
BComms

Public Member Functions

 CommsNet (BUInt rxFifoSize=1024, BUInt txFifoSize=1024)
 
 ~CommsNet ()
 
BError init ()
 
BError connect (BString host, BUInt16 port)
 
BError disconnect ()
 
BUInt readAvailable ()
 
BError wait (BUInt32 eventSet, BTimeout timeout=-1, BUInt32 num=1)
 
BError read (void *data, BUInt32 num, BUInt32 &nt)
 
BUInt writeAvailable ()
 
BError write (const void *data, BUInt32 nBytes, BUInt32 &nt)
 
BError writeChunks (const BDataChunk *chunks, BUInt nChunks, BUInt32 &nt)
 
- Public Member Functions inherited from BComms
 BComms ()
 
virtual ~BComms ()
 
virtual void close ()
 
virtual const char * name ()
 
virtual BUInt32 byteRate ()
 
virtual BError setPacketMode (Bool packetMode)
 
virtual Bool packetMode ()
 
virtual BError setTimeout (BTimeout timeoutUs)
 
virtual BError connect (const char *resource)
 
virtual Bool isConnected ()
 
virtual void flush (Flush flush)
 
virtual void eventQueue (BEventQueue *eventQueue, BUInt32 event, BUInt32 eventSet, BUInt num=1)
 
virtual void eventEnable (Bool on)
 

Protected Attributes

BSocket osocket
 
Bool oinWait
 
Bool oterminating
 
- Protected Attributes inherited from BComms
Bool oconnected
 
Bool opacketMode
 
BTimeout otimeout
 
BEventQueueoeventQueue
 
Bool oeventEnabled
 
BUInt32 oevent
 
BUInt32 oeventSet
 
BUInt oeventNum
 

Additional Inherited Members

- Public Types inherited from BComms
enum  Flush
 
- Public Attributes inherited from BComms
 FlushRead
 
 FlushWrite
 
 FlushReadWrite
 

Constructor & Destructor Documentation

◆ CommsNet()

BMeasureApi::CommsNet::CommsNet ( BUInt rxFifoSize = 1024,
BUInt txFifoSize = 1024 )

◆ ~CommsNet()

BMeasureApi::CommsNet::~CommsNet ( )

Member Function Documentation

◆ connect()

BError BMeasureApi::CommsNet::connect ( BString host,
BUInt16 port )

◆ disconnect()

BError BMeasureApi::CommsNet::disconnect ( )
virtual

Reimplemented from BComms.

◆ init()

BError BMeasureApi::CommsNet::init ( )
virtual

Reimplemented from BComms.

◆ read()

BError BMeasureApi::CommsNet::read ( void * data,
BUInt32 num,
BUInt32 & nt )
virtual

Implements BComms.

◆ readAvailable()

BUInt BMeasureApi::CommsNet::readAvailable ( )
virtual

Reimplemented from BComms.

◆ wait()

BError BMeasureApi::CommsNet::wait ( BUInt32 eventSet,
BTimeout timeout = -1,
BUInt32 num = 1 )
virtual

Reimplemented from BComms.

◆ write()

BError BMeasureApi::CommsNet::write ( const void * data,
BUInt32 nBytes,
BUInt32 & nt )
virtual

Implements BComms.

◆ writeAvailable()

BUInt BMeasureApi::CommsNet::writeAvailable ( )
virtual

Reimplemented from BComms.

◆ writeChunks()

BError BMeasureApi::CommsNet::writeChunks ( const BDataChunk * chunks,
BUInt nChunks,
BUInt32 & nt )
virtual

Reimplemented from BComms.

Member Data Documentation

◆ oinWait

Bool BMeasureApi::CommsNet::oinWait
protected

◆ osocket

BSocket BMeasureApi::CommsNet::osocket
protected

◆ oterminating

Bool BMeasureApi::CommsNet::oterminating
protected

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