NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::StreamFace< Protocol, FaceBase > Class Template Reference

#include <stream-face.hpp>

Inheritance diagram for nfd::StreamFace< Protocol, FaceBase >:
Collaboration diagram for nfd::StreamFace< Protocol, FaceBase >:

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 >
 

Detailed Description

template<class Protocol, class FaceBase = Face>
class nfd::StreamFace< Protocol, FaceBase >

Definition at line 39 of file stream-face.hpp.

Member Typedef Documentation

template<class Protocol, class FaceBase = Face>
typedef Protocol nfd::StreamFace< Protocol, FaceBase >::protocol

Definition at line 42 of file stream-face.hpp.

Constructor & Destructor Documentation

template<class Protocol, class FaceBase = Face>
nfd::StreamFace< T, FaceBase >::StreamFace ( const FaceUri remoteUri,
const FaceUri localUri,
typename protocol::socket  socket,
bool  isOnDemand 
)
inline

Member Function Documentation

template<class T , class U >
void nfd::StreamFace< T, U >::sendInterest ( const Interest interest)
inline
template<class T , class U >
void nfd::StreamFace< T, U >::sendData ( const Data data)
inline
template<class T , class U >
void nfd::StreamFace< T, U >::close ( )
inline
template<class T , class U >
void nfd::StreamFace< T, U >::processErrorCode ( const boost::system::error_code &  error)
inlineprotected
template<class T , class U >
void nfd::StreamFace< T, U >::handleSend ( const boost::system::error_code &  error,
size_t  nBytesSent 
)
inlineprotected
template<class T , class U >
void nfd::StreamFace< T, U >::handleReceive ( const boost::system::error_code &  error,
size_t  nBytesReceived 
)
inlineprotected
template<class T , class U >
void nfd::StreamFace< T, U >::deferredClose ( const shared_ptr< Face > &  face)
inlineprotected
template<class Protocol, class FaceBase = Face>
nfd::StreamFace< Protocol, FaceBase >::NFD_LOG_INCLASS_DECLARE ( )
protected

Friends And Related Function Documentation

template<class Protocol, class FaceBase = Face>
friend struct StreamFaceSenderImpl< Protocol, FaceBase, Interest >
friend

Definition at line 88 of file stream-face.hpp.

template<class Protocol, class FaceBase = Face>
friend struct StreamFaceSenderImpl< Protocol, FaceBase, Data >
friend

Definition at line 89 of file stream-face.hpp.

Member Data Documentation


The documentation for this class was generated from the following file: