NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: 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

◆ protocol

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

◆ StreamFace()

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

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

Member Function Documentation

◆ sendInterest()

template<class T , class U >
void nfd::StreamFace< T, U >::sendInterest ( const Interest interest)
inline

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

◆ sendData()

template<class T , class U >
void nfd::StreamFace< T, U >::sendData ( const Data data)
inline

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

◆ close()

template<class T , class U >
void nfd::StreamFace< T, U >::close ( )
inline

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

◆ processErrorCode()

template<class T , class U >
void nfd::StreamFace< T, U >::processErrorCode ( const boost::system::error_code &  error)
inlineprotected

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

◆ sendFromQueue()

template<class T , class U >
void nfd::StreamFace< T, U >::sendFromQueue ( )
inlineprotected

◆ handleSend()

template<class T , class U >
void nfd::StreamFace< T, U >::handleSend ( const boost::system::error_code &  error,
size_t  nBytesSent 
)
inlineprotected

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

◆ handleReceive()

template<class T , class U >
void nfd::StreamFace< T, U >::handleReceive ( const boost::system::error_code &  error,
size_t  nBytesReceived 
)
inlineprotected

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

◆ shutdownSocket()

template<class T , class U >
void nfd::StreamFace< T, U >::shutdownSocket ( )
inlineprotected

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

◆ deferredClose()

template<class T , class U >
void nfd::StreamFace< T, U >::deferredClose ( const shared_ptr< Face > &  face)
inlineprotected

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

◆ NFD_LOG_INCLASS_DECLARE()

template<class Protocol, class FaceBase = Face>
nfd::StreamFace< Protocol, FaceBase >::NFD_LOG_INCLASS_DECLARE ( )
protected

Friends And Related Function Documentation

◆ StreamFaceSenderImpl< Protocol, FaceBase, Interest >

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

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

◆ StreamFaceSenderImpl< Protocol, FaceBase, Data >

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

◆ m_socket

template<class Protocol, class FaceBase = Face>
protocol::socket nfd::StreamFace< Protocol, FaceBase >::m_socket
protected

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


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