Class to perform the actual reading from a socket. More...
#include "tap-bridge.h"
Private Member Functions | |
| FdReader::Data | DoRead () override | 
| The read implementation.   | |
Additional Inherited Members | |
| Public Member Functions inherited from ns3::FdReader | |
| FdReader () | |
| Constructor.   | |
| virtual | ~FdReader () | 
| Destructor.   | |
| void | Start (int fd, Callback< void, uint8_t *, ssize_t > readCallback) | 
| Start a new read thread.   | |
| void | Stop () | 
| Stop the read thread and reset internal state.   | |
| Public Member Functions inherited from ns3::SimpleRefCount< FdReader > | |
| SimpleRefCount () | |
| Default constructor.   | |
| uint32_t | GetReferenceCount () const | 
| Get the reference count of the object.   | |
| SimpleRefCount & | operator= (const SimpleRefCount &o) | 
| Assignment operator.   | |
| void | Ref () const | 
| Increment the reference count.   | |
| void | Unref () const | 
| Decrement the reference count.   | |
| Protected Attributes inherited from ns3::FdReader | |
| int | m_fd | 
| The file descriptor to read from.   | |
Class to perform the actual reading from a socket.
Definition at line 32 of file tap-bridge.h.
      
  | 
  overrideprivatevirtual | 
The read implementation.
The value of m_len returned controls further processing. The callback function is only invoked when m_len is positive; any data read is not processed when m_len is negative; reading stops when m_len is zero.
The management of memory associated with m_buf must be compatible with the read callback.
Implements ns3::FdReader.
Definition at line 44 of file tap-bridge.cc.
References ns3::FdReader::m_fd, NS_ABORT_MSG_IF, NS_LOG_FUNCTION, NS_LOG_INFO, and NS_LOG_LOGIC.