#include <BSocket.h>
|
| BSocket (Type type=TypeNone) |
|
BError | init (Type type) |
|
void | close () |
|
BError | write (const void *buf, BUInt32 nBytes, BUInt32 &nt) |
|
BError | read (void *buf, BUInt32 nBytes, BUInt32 &nt) |
|
BError | bind (const BSocketAddress &address) |
|
BError | connect (const BSocketAddress &address) |
|
BError | listen (int backlog=5) |
|
BError | accept (BSocket &socket, BSocketAddress &address) |
|
BError | send (const void *buf, BUInt32 nBytes, BUInt32 &nt, int flags=0) |
|
BError | recv (void *buf, BUInt32 nBytes, BUInt32 &nt, int flags=0) |
|
| BComms () |
|
virtual | ~BComms () |
|
virtual BError | init () |
|
virtual const char * | name () |
| The name of this interface. More...
|
|
virtual BUInt32 | byteRate () |
| The byte rate of this interface. More...
|
|
virtual BError | setPacketMode (Bool packetMode) |
| Set packet mode. More...
|
|
virtual Bool | packetMode () |
| Device is in packet mode. More...
|
|
virtual BError | setTimeout (BTimeout timeoutUs) |
| Set communication timeout. More...
|
|
virtual BError | connect (const char *resource) |
| Create a connection. More...
|
|
virtual Bool | isConnected () |
|
virtual BError | disconnect () |
| Disconnect. More...
|
|
virtual void | flush (Flush flush) |
|
virtual BUInt | writeAvailable () |
|
virtual BError | writeChunks (const BDataChunk *chunks, BUInt nChunks, BUInt32 &nTrans) |
|
virtual BUInt | readAvailable () |
|
virtual BError | wait (BUInt32 eventSet, BTimeout timeoutUs=BTimeoutForever, BUInt32 num=1) |
|
virtual void | eventQueue (BEventQueue *eventQueue, BUInt32 event, BUInt32 eventSet, BUInt num=1) |
|
virtual void | eventEnable (Bool on) |
| Enable events to be sent. More...
|
|
◆ Type
Enumerator |
---|
TypeNone | |
TypeUdp | |
TypeTcp | |
◆ BSocket()
◆ accept()
◆ bind()
◆ close()
◆ connect()
◆ init()
◆ listen()
BError BSocket::listen | ( | int | backlog = 5 | ) | |
◆ read()
◆ recv()
◆ send()
◆ write()
◆ osocket
◆ otype
The documentation for this class was generated from the following files: