ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ns3::UnixFileFdBase Class Reference

#include <unix-file-fd.h>

+ Inheritance diagram for ns3::UnixFileFdBase:
+ Collaboration diagram for ns3::UnixFileFdBase:

Public Member Functions

 UnixFileFdBase (int realFd)
virtual ~UnixFileFdBase ()
virtual int Accept (struct sockaddr *my_addr, socklen_t *addrlen)
virtual int Bind (const struct sockaddr *my_addr, socklen_t addrlen)
virtual bool CanRecv (void) const
virtual bool CanSend (void) const
virtual int Connect (const struct sockaddr *my_addr, socklen_t addrlen)
virtual int Fcntl (int cmd, unsigned long arg)
virtual int Ftruncate (off_t length)
virtual int Fxstat (int ver, struct::stat *buf)
virtual int Fxstat64 (int ver, struct::stat64 *buf)
virtual int Getpeername (struct sockaddr *name, socklen_t *namelen)
virtual int GetRealFd (void) const
virtual int Getsockname (struct sockaddr *name, socklen_t *namelen)
virtual int Getsockopt (int level, int optname, void *optval, socklen_t *optlen)
virtual int Gettime (struct itimerspec *cur_value) const
virtual bool HangupReceived (void) const
virtual int Ioctl (int request, char *argp)
virtual bool Isatty (void) const
virtual int Listen (int backlog)
virtual off64_t Lseek (off64_t offset, int whence)
virtual void * Mmap (void *start, size_t length, int prot, int flags, off64_t offset)
virtual int Poll (PollTable *ptable)
virtual ssize_t Read (void *buf, size_t count)
virtual ssize_t Recvmsg (struct msghdr *msg, int flags)
virtual ssize_t Sendmsg (const struct msghdr *msg, int flags)
virtual int Setsockopt (int level, int optname, const void *optval, socklen_t optlen)
virtual int Settime (int flags, const struct itimerspec *new_value, struct itimerspec *old_value)
virtual int Shutdown (int how)
virtual ssize_t Write (const void *buf, size_t count)
- Public Member Functions inherited from ns3::UnixFd
virtual int Close (void)=0
void DecFdCount (void)
int GetFdCount (void) const
void IncFdCount (void)
virtual char * Ttyname (void)

Protected Member Functions

int PeekRealFd (void) const
- Protected Member Functions inherited from ns3::UnixFd
 UnixFd ()
void AddWaitQueue (WaitQueueEntry *, bool andRegister)
void RemoveWaitQueue (WaitQueueEntry *, bool andUnregister)
void WakeWaiters (void *key)

Private Attributes

int m_realFd

Additional Inherited Members

- Static Public Member Functions inherited from ns3::UnixFd
static TypeId GetTypeId (void)
- Protected Attributes inherited from ns3::UnixFd
int m_fdFlags
int m_statusFlags

Detailed Description

Definition at line 8 of file unix-file-fd.h.

Constructor & Destructor Documentation

ns3::UnixFileFdBase::UnixFileFdBase ( int  realFd)

Definition at line 18 of file unix-file-fd.cc.

ns3::UnixFileFdBase::~UnixFileFdBase ( )
virtual

Definition at line 22 of file unix-file-fd.cc.

References m_realFd.

Member Function Documentation

int ns3::UnixFileFdBase::Accept ( struct sockaddr *  my_addr,
socklen_t *  addrlen 
)
virtual

Implements ns3::UnixFd.

Definition at line 158 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

int ns3::UnixFileFdBase::Bind ( const struct sockaddr *  my_addr,
socklen_t  addrlen 
)
virtual

Implements ns3::UnixFd.

Definition at line 131 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

bool ns3::UnixFileFdBase::CanRecv ( void  ) const
virtual

Reimplemented in ns3::UnixRandomFd.

Definition at line 265 of file unix-file-fd.cc.

References m_realFd.

Referenced by Poll().

+ Here is the caller graph for this function:

bool ns3::UnixFileFdBase::CanSend ( void  ) const
virtual

Reimplemented in ns3::UnixRandomFd, and ns3::UnixFileFdLight.

Definition at line 283 of file unix-file-fd.cc.

References m_realFd.

Referenced by Poll().

+ Here is the caller graph for this function:

int ns3::UnixFileFdBase::Connect ( const struct sockaddr *  my_addr,
socklen_t  addrlen 
)
virtual

Implements ns3::UnixFd.

Definition at line 140 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

int ns3::UnixFileFdBase::Fcntl ( int  cmd,
unsigned long  arg 
)
virtual

Reimplemented from ns3::UnixFd.

Definition at line 230 of file unix-file-fd.cc.

References ns3::Current(), ns3::Thread::err, errno, and m_realFd.

+ Here is the call graph for this function:

int ns3::UnixFileFdBase::Ftruncate ( off_t  length)
virtual

Implements ns3::UnixFd.

Definition at line 307 of file unix-file-fd.cc.

References ns3::Current(), ns3::Thread::err, errno, and m_realFd.

+ Here is the call graph for this function:

int ns3::UnixFileFdBase::Fxstat ( int  ver,
struct::stat *  buf 
)
virtual

Implements ns3::UnixFd.

Reimplemented in ns3::UnixRandomFd.

Definition at line 204 of file unix-file-fd.cc.

References ns3::Current(), ns3::Thread::err, errno, and m_realFd.

+ Here is the call graph for this function:

int ns3::UnixFileFdBase::Fxstat64 ( int  ver,
struct::stat64 *  buf 
)
virtual

Implements ns3::UnixFd.

Reimplemented in ns3::UnixRandomFd.

Definition at line 217 of file unix-file-fd.cc.

References ns3::Current(), ns3::Thread::err, errno, and m_realFd.

+ Here is the call graph for this function:

int ns3::UnixFileFdBase::Getpeername ( struct sockaddr *  name,
socklen_t *  namelen 
)
virtual

Implements ns3::UnixFd.

Definition at line 112 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

int ns3::UnixFileFdBase::GetRealFd ( void  ) const
virtual

Reimplemented from ns3::UnixFd.

Definition at line 321 of file unix-file-fd.cc.

References m_realFd.

int ns3::UnixFileFdBase::Getsockname ( struct sockaddr *  name,
socklen_t *  namelen 
)
virtual

Implements ns3::UnixFd.

Definition at line 103 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

int ns3::UnixFileFdBase::Getsockopt ( int  level,
int  optname,
void *  optval,
socklen_t *  optlen 
)
virtual

Implements ns3::UnixFd.

Definition at line 93 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

int ns3::UnixFileFdBase::Gettime ( struct itimerspec *  cur_value) const
virtual

Implements ns3::UnixFd.

Definition at line 254 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

bool ns3::UnixFileFdBase::HangupReceived ( void  ) const
virtual

Implements ns3::UnixFd.

Definition at line 301 of file unix-file-fd.cc.

Referenced by Poll().

+ Here is the caller graph for this function:

int ns3::UnixFileFdBase::Ioctl ( int  request,
char *  argp 
)
virtual

Implements ns3::UnixFd.

Definition at line 122 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

bool ns3::UnixFileFdBase::Isatty ( void  ) const
virtual

Implements ns3::UnixFd.

Definition at line 78 of file unix-file-fd.cc.

References m_realFd.

int ns3::UnixFileFdBase::Listen ( int  backlog)
virtual

Implements ns3::UnixFd.

Definition at line 149 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

off64_t ns3::UnixFileFdBase::Lseek ( off64_t  offset,
int  whence 
)
virtual

Implements ns3::UnixFd.

Definition at line 191 of file unix-file-fd.cc.

References ns3::Current(), ns3::Thread::err, errno, and m_realFd.

+ Here is the call graph for this function:

void * ns3::UnixFileFdBase::Mmap ( void *  start,
size_t  length,
int  prot,
int  flags,
off64_t  offset 
)
virtual

Implements ns3::UnixFd.

Definition at line 176 of file unix-file-fd.cc.

References ns3::Current(), ns3::Thread::err, errno, and m_realFd.

+ Here is the call graph for this function:

int ns3::UnixFileFdBase::PeekRealFd ( void  ) const
protected

Definition at line 28 of file unix-file-fd.cc.

References m_realFd.

Referenced by ns3::UnixFileFd::Close(), and ns3::UnixFileFd::~UnixFileFd().

+ Here is the caller graph for this function:

int ns3::UnixFileFdBase::Poll ( PollTable ptable)
virtual

Implements ns3::UnixFd.

Definition at line 354 of file unix-file-fd.cc.

References CanRecv(), CanSend(), HangupReceived(), and ns3::PollTable::PollWait().

+ Here is the call graph for this function:

ssize_t ns3::UnixFileFdBase::Read ( void *  buf,
size_t  count 
)
virtual

Implements ns3::UnixFd.

Reimplemented in ns3::UnixRandomFd.

Definition at line 46 of file unix-file-fd.cc.

References ns3::Current(), ns3::Thread::err, errno, and m_realFd.

+ Here is the call graph for this function:

ssize_t ns3::UnixFileFdBase::Recvmsg ( struct msghdr *  msg,
int  flags 
)
virtual

Implements ns3::UnixFd.

Definition at line 60 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

ssize_t ns3::UnixFileFdBase::Sendmsg ( const struct msghdr *  msg,
int  flags 
)
virtual

Implements ns3::UnixFd.

Definition at line 69 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

int ns3::UnixFileFdBase::Setsockopt ( int  level,
int  optname,
const void *  optval,
socklen_t  optlen 
)
virtual

Implements ns3::UnixFd.

Definition at line 83 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

int ns3::UnixFileFdBase::Settime ( int  flags,
const struct itimerspec *  new_value,
struct itimerspec *  old_value 
)
virtual

Implements ns3::UnixFd.

Definition at line 243 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

int ns3::UnixFileFdBase::Shutdown ( int  how)
virtual

Implements ns3::UnixFd.

Definition at line 167 of file unix-file-fd.cc.

References ns3::Current(), and ns3::Thread::err.

+ Here is the call graph for this function:

ssize_t ns3::UnixFileFdBase::Write ( const void *  buf,
size_t  count 
)
virtual

Implements ns3::UnixFd.

Reimplemented in ns3::UnixRandomFd, and ns3::UnixFileFdLight.

Definition at line 33 of file unix-file-fd.cc.

References ns3::Current(), ns3::Thread::err, errno, and m_realFd.

+ Here is the call graph for this function:

Member Data Documentation

int ns3::UnixFileFdBase::m_realFd
private

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