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

#include <unix-file-fd.h>

+ Inheritance diagram for ns3::UnixRandomFd:
+ Collaboration diagram for ns3::UnixRandomFd:

Public Member Functions

 UnixRandomFd (std::string devicePath)
virtual ~UnixRandomFd ()
virtual bool CanRecv (void) const
virtual bool CanSend (void) const
virtual int Close (void)
virtual int Fxstat (int ver, struct::stat *buf)
virtual int Fxstat64 (int ver, struct::stat64 *buf)
virtual ssize_t Read (void *buf, size_t count)
virtual ssize_t Write (const void *buf, size_t count)
- Public Member Functions inherited from ns3::UnixFileFdBase
 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 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 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 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)
- Public Member Functions inherited from ns3::UnixFd
void DecFdCount (void)
int GetFdCount (void) const
void IncFdCount (void)
virtual char * Ttyname (void)

Private Attributes

std::string m_devPath

Additional Inherited Members

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

Detailed Description

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

Constructor & Destructor Documentation

ns3::UnixRandomFd::UnixRandomFd ( std::string  devicePath)

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

ns3::UnixRandomFd::~UnixRandomFd ( )
virtual

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

Member Function Documentation

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

Reimplemented from ns3::UnixFileFdBase.

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

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

Reimplemented from ns3::UnixFileFdBase.

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

int ns3::UnixRandomFd::Close ( void  )
virtual

Implements ns3::UnixFd.

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

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

Reimplemented from ns3::UnixFileFdBase.

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

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

+ Here is the call graph for this function:

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

Reimplemented from ns3::UnixFileFdBase.

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

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

+ Here is the call graph for this function:

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

Reimplemented from ns3::UnixFileFdBase.

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

References ns3::DceNodeContext::GetNodeContext().

+ Here is the call graph for this function:

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

Reimplemented from ns3::UnixFileFdBase.

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

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

+ Here is the call graph for this function:

Member Data Documentation

std::string ns3::UnixRandomFd::m_devPath
private

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

Referenced by Fxstat(), and Fxstat64().


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