Electronics and Software
Engineering Innovation
BMeasure-lib  0.2.8
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 (BEventWaitSet events, 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 void eventQueue (BEventQueue *eventQueue, BInt32 event, BUInt num=1)
 

Protected Attributes

BSocket osocket
 
- 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 ( BEventWaitSet  events,
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

◆ osocket

BSocket BMeasureApi::CommsNet::osocket
protected

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