Electronics and Software
Engineering Innovation
BMeasure-lib  0.8.4
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 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 BError wait (BEventWaitSet events, BTimeout timeoutUs=BTimeoutForever, BUInt32 num=1)
 
virtual void eventQueue (BEventQueue *eventQueue, BInt32 event, BUInt num=1)
 

Protected Attributes

BSocket osocket
 
Bool oinWait
 
Bool oterminating
 
- Protected Attributes inherited from BComms
Bool oconnected
 
Bool opacketMode
 
BTimeout otimeout
 
BEventQueueoeventQueue
 
BInt32 oevent
 
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 
)

◆ 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: