NNG transport class. NNG socket instances must only be called by a single thread of control. Each transport instance has its own internal thread of control and all transport APIs are asynchronous. Each instance is an "active
object" with a private internal thread of control and async public APIs.
More...
#include <NngTransport.h>
NNG transport class. NNG socket instances must only be called by a single thread of control. Each transport instance has its own internal thread of control and all transport APIs are asynchronous. Each instance is an "active
object" with a private internal thread of control and async public APIs.
◆ Type
Enumerator |
---|
PAIR_CLIENT | |
PAIR_SERVER | |
PUB | |
SUB | |
◆ NngTransport()
NngTransport::NngTransport |
( |
| ) |
|
|
inline |
◆ ~NngTransport()
NngTransport::~NngTransport |
( |
| ) |
|
|
inline |
◆ Close()
void NngTransport::Close |
( |
| ) |
|
|
inline |
◆ Create()
int NngTransport::Create |
( |
Type | type, |
|
|
const char * | addr ) |
|
inline |
◆ Destroy()
void NngTransport::Destroy |
( |
| ) |
|
|
inline |
◆ Receive()
Receive data from a remote
- Parameters
-
[out] | is | The received incoming data bytes, not including the header. |
[out] | header | Incoming delegate message header. |
- Returns
- 0 if success.
Implements ITransport.
◆ Send()
Send data to a remote
- Parameters
-
[in] | os | Output stream to send. |
[in] | header | The header to send. |
- Returns
- 0 if success.
Implements ITransport.
◆ SetRecvTransport()
void NngTransport::SetRecvTransport |
( |
ITransport * | recvTransport | ) |
|
|
inline |
◆ SetSendTransport()
void NngTransport::SetSendTransport |
( |
ITransport * | sendTransport | ) |
|
|
inline |
◆ SetTransportMonitor()
The documentation for this class was generated from the following file: