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

#include <unix-file-fd.h>

+ Inheritance diagram for ns3::UnixFileFdLight:
+ Collaboration diagram for ns3::UnixFileFdLight:

Public Member Functions

 UnixFileFdLight (std::string path)
virtual ~UnixFileFdLight ()
virtual bool CanSend (void) const
virtual int Close (void)
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 bool CanRecv (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)
- 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_path

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 64 of file unix-file-fd.h.

Constructor & Destructor Documentation

ns3::UnixFileFdLight::UnixFileFdLight ( std::string  path)

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

ns3::UnixFileFdLight::~UnixFileFdLight ( )
virtual

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

References m_path.

Member Function Documentation

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

Reimplemented from ns3::UnixFileFdBase.

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

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

Implements ns3::UnixFd.

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

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

Reimplemented from ns3::UnixFileFdBase.

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

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

+ Here is the call graph for this function:

Member Data Documentation

std::string ns3::UnixFileFdLight::m_path
private

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

Referenced by Write(), and ~UnixFileFdLight().


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