

Public Member Functions | |
| void | receive (Block block) const |
| virtual void | close () override |
| Close the connection. More... | |
| virtual void | pause () override |
| pause the transport More... | |
| virtual void | resume () override |
| resume the transport More... | |
| virtual void | send (const Block &wire) override |
| send a TLV block through the transport More... | |
| virtual void | send (const Block &header, const Block &payload) override |
| send two memory blocks through the transport More... | |
| boost::asio::io_service & | getIoService () |
Public Member Functions inherited from ndn::Transport | |
| Transport () | |
| virtual | ~Transport ()=default |
| virtual void | connect (boost::asio::io_service &ioService, const ReceiveCallback &receiveCallback) |
| asynchronously open the connection More... | |
| bool | isConnected () const |
| bool | isReceiving () const |
Public Attributes | |
| Signal< Transport, Block > | onSendBlock |
Additional Inherited Members | |
Public Types inherited from ndn::Transport | |
| typedef function< void(const Block &wire)> | ReceiveCallback |
| typedef function< void()> | ErrorCallback |
Protected Member Functions inherited from ndn::Transport | |
| void | receive (const Block &wire) |
| invoke the receive callback More... | |
Protected Attributes inherited from ndn::Transport | |
| boost::asio::io_service * | m_ioService |
| bool | m_isConnected |
| bool | m_isReceiving |
| ReceiveCallback | m_receiveCallback |
Definition at line 34 of file dummy-client-face.cpp.
|
inline |
Definition at line 38 of file dummy-client-face.cpp.
References ndn::Block::encode(), and ndn::Transport::m_receiveCallback.
|
inlineoverridevirtual |
Close the connection.
Implements ndn::Transport.
Definition at line 47 of file dummy-client-face.cpp.
|
inlineoverridevirtual |
pause the transport
Implements ndn::Transport.
Definition at line 52 of file dummy-client-face.cpp.
|
inlineoverridevirtual |
resume the transport
Implements ndn::Transport.
Definition at line 57 of file dummy-client-face.cpp.
|
inlineoverridevirtual |
send a TLV block through the transport
Implements ndn::Transport.
Definition at line 62 of file dummy-client-face.cpp.
References onSendBlock.
Referenced by send().
|
inlineoverridevirtual |
send two memory blocks through the transport
Scatter/gather API is utilized to send two non-consecutive memory blocks together (as part of the same message in datagram-oriented transports).
Implements ndn::Transport.
Definition at line 68 of file dummy-client-face.cpp.
References ndn::encoding::Encoder::appendByteArray(), send(), ndn::Block::size(), and ndn::Block::wire().
|
inline |
Definition at line 78 of file dummy-client-face.cpp.
References ndn::Transport::m_ioService.
Definition at line 84 of file dummy-client-face.cpp.
Referenced by send().