Definition at line 34 of file dummy-client-face.cpp.
void ndn::util::DummyClientFace::Transport::close |
( |
| ) |
|
|
inlineoverridevirtual |
void ndn::Transport::connect |
( |
boost::asio::io_service & |
ioService, |
|
|
const ReceiveCallback & |
receiveCallback |
|
) |
| |
|
virtualinherited |
asynchronously open the connection
- Parameters
-
ioService | io_service to create socket on |
receiveCallback | callback function when a TLV block is received; must not be empty |
- Exceptions
-
boost::system::system_error | connection cannot be established |
Reimplemented in ndn::TcpTransport, and ndn::UnixTransport.
Definition at line 44 of file transport.cpp.
boost::asio::io_service& ndn::util::DummyClientFace::Transport::getIoService |
( |
| ) |
|
|
inline |
bool ndn::Transport::isConnected |
( |
| ) |
const |
|
inlineinherited |
- Return values
-
true | connection has been established |
false | connection is not yet established or has been closed |
Definition at line 128 of file transport.hpp.
bool ndn::Transport::isReceiving |
( |
| ) |
const |
|
inlineinherited |
- Return values
-
true | incoming packets are expected, receiveCallback will be invoked |
false | incoming packets are not expected, receiveCallback will not be invoked |
Definition at line 134 of file transport.hpp.
void ndn::util::DummyClientFace::Transport::pause |
( |
| ) |
|
|
inlineoverridevirtual |
pause the transport
- Postcondition
- receiveCallback will not be invoked
- Note
- This operation has no effect if transport has been paused, or when connection is being established.
Implements ndn::Transport.
Definition at line 52 of file dummy-client-face.cpp.
void ndn::util::DummyClientFace::Transport::receive |
( |
Block |
block | ) |
const |
|
inline |
void ndn::Transport::receive |
( |
const Block & |
wire | ) |
|
|
inlineprotectedinherited |
void ndn::util::DummyClientFace::Transport::resume |
( |
| ) |
|
|
inlineoverridevirtual |
resume the transport
- Postcondition
- receiveCallback will be invoked
- Note
- This operation has no effect if transport is not paused, or when connection is being established.
Implements ndn::Transport.
Definition at line 57 of file dummy-client-face.cpp.
void ndn::util::DummyClientFace::Transport::send |
( |
const Block & |
wire | ) |
|
|
inlineoverridevirtual |
void ndn::util::DummyClientFace::Transport::send |
( |
const Block & |
header, |
|
|
const Block & |
payload |
|
) |
| |
|
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.
boost::asio::io_service* ndn::Transport::m_ioService |
|
protectedinherited |
bool ndn::Transport::m_isConnected |
|
protectedinherited |
bool ndn::Transport::m_isReceiving |
|
protectedinherited |
Signal<Transport, Block> ndn::util::DummyClientFace::Transport::onSendBlock |