Public Member Functions | |
void | receive (Block block) const |
void | close () override |
Close the connection. More... | |
void | pause () override |
pause the transport More... | |
void | resume () override |
resume the transport More... | |
void | send (const Block &wire) override |
send a TLV block through the transport More... | |
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 | |
virtual | ~Transport ()=default |
virtual void | connect (ReceiveCallback receiveCallback) |
Asynchronously open the connection. More... | |
bool | isConnected () const noexcept |
bool | isReceiving () const noexcept |
Public Attributes | |
Signal< Transport, Block > | onSendBlock |
Additional Inherited Members | |
Public Types inherited from ndn::Transport | |
using | ReceiveCallback = std::function< void(const Block &wire)> |
using | ErrorCallback = std::function< void()> |
Protected Attributes inherited from ndn::Transport | |
ReceiveCallback | m_receiveCallback |
bool | m_isConnected = false |
bool | m_isReceiving = false |
Definition at line 35 of file dummy-client-face.cpp.
|
inline |
Definition at line 39 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 48 of file dummy-client-face.cpp.
|
inlineoverridevirtual |
pause the transport
Implements ndn::Transport.
Definition at line 53 of file dummy-client-face.cpp.
|
inlineoverridevirtual |
resume the transport
Implements ndn::Transport.
Definition at line 58 of file dummy-client-face.cpp.
|
inlineoverridevirtual |
send a TLV block through the transport
Implements ndn::Transport.
Definition at line 63 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 69 of file dummy-client-face.cpp.
References send(), ndn::Block::size(), and ndn::Block::wire().
|
inline |
Definition at line 79 of file dummy-client-face.cpp.
Definition at line 85 of file dummy-client-face.cpp.
Referenced by send().