#include <stream-face.hpp>
Public Types | |
typedef Protocol | protocol |
Public Member Functions | |
StreamFace (const FaceUri &remoteUri, const FaceUri &localUri, typename protocol::socket socket, bool isOnDemand) | |
void | sendInterest (const Interest &interest) 1 |
void | sendData (const Data &data) 1 |
void | close () 1 |
Protected Member Functions | |
void | processErrorCode (const boost::system::error_code &error) |
void | sendFromQueue () |
void | handleSend (const boost::system::error_code &error, size_t nBytesSent) |
void | handleReceive (const boost::system::error_code &error, size_t nBytesReceived) |
void | shutdownSocket () |
void | deferredClose (const shared_ptr< Face > &face) |
NFD_LOG_INCLASS_DECLARE () | |
Protected Attributes | |
protocol::socket | m_socket |
Friends | |
struct | StreamFaceSenderImpl< Protocol, FaceBase, Interest > |
struct | StreamFaceSenderImpl< Protocol, FaceBase, Data > |
Definition at line 39 of file stream-face.hpp.
typedef Protocol nfd::StreamFace< Protocol, FaceBase >::protocol |
Definition at line 42 of file stream-face.hpp.
|
inline |
|
inline |
Definition at line 170 of file stream-face.hpp.
References emitSignal, NFD_LOG_FACE_TRACE, and nfd::StreamFaceSenderImpl< Protocol, FaceBase, Packet >::send().
|
inline |
Definition at line 179 of file stream-face.hpp.
References emitSignal, NFD_LOG_FACE_TRACE, and nfd::StreamFaceSenderImpl< Protocol, FaceBase, Packet >::send().
|
inline |
Definition at line 188 of file stream-face.hpp.
References nfd::StreamFace< Protocol, FaceBase >::m_socket, NFD_LOG_FACE_INFO, and nfd::StreamFace< Protocol, FaceBase >::shutdownSocket().
|
inlineprotected |
Definition at line 201 of file stream-face.hpp.
References nfd::StreamFace< Protocol, FaceBase >::m_socket, NFD_LOG_FACE_WARN, and nfd::StreamFace< Protocol, FaceBase >::shutdownSocket().
Referenced by nfd::StreamFace< Protocol, FaceBase >::handleReceive(), and nfd::StreamFace< Protocol, FaceBase >::handleSend().
|
inlineprotected |
Definition at line 226 of file stream-face.hpp.
References nfd::StreamFace< Protocol, FaceBase >::m_socket.
Referenced by nfd::StreamFace< Protocol, FaceBase >::handleSend(), nfd::StreamFaceSenderImpl< Protocol, FaceBase, Packet >::send(), and nfd::StreamFaceSenderImpl< Protocol, LocalFace, Packet >::send().
|
inlineprotected |
Definition at line 236 of file stream-face.hpp.
References NFD_LOG_FACE_TRACE, nfd::StreamFace< Protocol, FaceBase >::processErrorCode(), and nfd::StreamFace< Protocol, FaceBase >::sendFromQueue().
|
inlineprotected |
Definition at line 254 of file stream-face.hpp.
References ndn::Block::fromBuffer(), nfd::StreamFace< Protocol, FaceBase >::m_socket, ndn::MAX_NDN_PACKET_SIZE, NFD_LOG_FACE_TRACE, NFD_LOG_FACE_WARN, nfd::StreamFace< Protocol, FaceBase >::processErrorCode(), nfd::StreamFace< Protocol, FaceBase >::shutdownSocket(), ndn::Block::size(), and ndn::Block::type().
|
inlineprotected |
Definition at line 315 of file stream-face.hpp.
References nfd::getGlobalIoService(), nfd::StreamFace< Protocol, FaceBase >::m_socket, and NFD_LOG_FACE_TRACE.
Referenced by nfd::StreamFace< Protocol, FaceBase >::close(), nfd::StreamFace< Protocol, FaceBase >::handleReceive(), and nfd::StreamFace< Protocol, FaceBase >::processErrorCode().
|
inlineprotected |
Definition at line 346 of file stream-face.hpp.
References nfd::StreamFace< Protocol, FaceBase >::m_socket, and NFD_LOG_FACE_TRACE.
|
protected |
|
friend |
Definition at line 88 of file stream-face.hpp.
|
friend |
Definition at line 89 of file stream-face.hpp.
|
protected |
Definition at line 79 of file stream-face.hpp.
Referenced by nfd::StreamFace< Protocol, FaceBase >::close(), nfd::StreamFace< Protocol, FaceBase >::deferredClose(), nfd::StreamFace< Protocol, FaceBase >::handleReceive(), nfd::StreamFace< Protocol, FaceBase >::processErrorCode(), nfd::StreamFace< Protocol, FaceBase >::sendFromQueue(), nfd::StreamFace< Protocol, FaceBase >::shutdownSocket(), and nfd::StreamFace< Protocol, FaceBase >::StreamFace().