#include <linux-socket-fd.h>
Public Member Functions | |
LinuxSocketFd (Ptr< LinuxSocketFdFactory > factory, struct SimSocket *socket) | |
virtual | ~LinuxSocketFd () |
virtual int | Accept (struct sockaddr *my_addr, socklen_t *addrlen) |
virtual int | Bind (const struct sockaddr *my_addr, socklen_t addrlen) |
virtual int | Close (void) |
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 | 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) |
void | PollEvent (int flag) |
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) |
![]() | |
void | DecFdCount (void) |
int | GetFdCount (void) const |
virtual int | GetRealFd (void) const |
void | IncFdCount (void) |
virtual char * | Ttyname (void) |
Private Attributes | |
Ptr< LinuxSocketFdFactory > | m_factory |
void * | m_kernelPollCtx |
struct SimSocket * | m_socket |
int | m_statusFlags |
Additional Inherited Members | |
![]() | |
static TypeId | GetTypeId (void) |
![]() | |
UnixFd () | |
void | AddWaitQueue (WaitQueueEntry *, bool andRegister) |
void | RemoveWaitQueue (WaitQueueEntry *, bool andUnregister) |
void | WakeWaiters (void *key) |
![]() | |
int | m_fdFlags |
int | m_statusFlags |
Definition at line 17 of file linux-socket-fd.h.
ns3::LinuxSocketFd::LinuxSocketFd | ( | Ptr< LinuxSocketFdFactory > | factory, |
struct SimSocket * | socket | ||
) |
Definition at line 15 of file linux-socket-fd.cc.
|
virtual |
Definition at line 23 of file linux-socket-fd.cc.
|
virtual |
Implements ns3::UnixFd.
Definition at line 133 of file linux-socket-fd.cc.
References m_factory, and m_socket.
Referenced by ns3::LinuxSocketImpl::Poll().
|
virtual |
Implements ns3::UnixFd.
Definition at line 113 of file linux-socket-fd.cc.
References m_factory, and m_socket.
Referenced by ns3::LinuxSocketImpl::Bind(), and ns3::LinuxSocketImpl::Bind6().
|
virtual |
Implements ns3::UnixFd.
Definition at line 28 of file linux-socket-fd.cc.
References m_factory, and m_socket.
Referenced by ns3::LinuxSocketImpl::Close().
|
virtual |
Implements ns3::UnixFd.
Definition at line 118 of file linux-socket-fd.cc.
References m_factory, m_socket, and m_statusFlags.
Referenced by ns3::LinuxSocketImpl::Connect().
|
virtual |
Reimplemented from ns3::UnixFd.
Definition at line 170 of file linux-socket-fd.cc.
References m_statusFlags.
Referenced by ns3::LinuxSocketImpl::Poll().
|
virtual |
Implements ns3::UnixFd.
Definition at line 219 of file linux-socket-fd.cc.
References ns3::Current(), and ns3::Thread::err.
|
virtual |
|
virtual |
|
virtual |
Implements ns3::UnixFd.
Definition at line 103 of file linux-socket-fd.cc.
References m_factory, and m_socket.
Referenced by ns3::LinuxSocketImpl::RecvFrom().
|
virtual |
Implements ns3::UnixFd.
Definition at line 98 of file linux-socket-fd.cc.
|
virtual |
Implements ns3::UnixFd.
Definition at line 92 of file linux-socket-fd.cc.
|
virtual |
Implements ns3::UnixFd.
Definition at line 199 of file linux-socket-fd.cc.
References ns3::Current(), and ns3::Thread::err.
|
virtual |
Implements ns3::UnixFd.
Definition at line 208 of file linux-socket-fd.cc.
|
virtual |
Implements ns3::UnixFd.
Definition at line 108 of file linux-socket-fd.cc.
|
virtual |
Implements ns3::UnixFd.
Definition at line 81 of file linux-socket-fd.cc.
|
virtual |
Implements ns3::UnixFd.
Definition at line 123 of file linux-socket-fd.cc.
References m_factory, and m_socket.
Referenced by ns3::LinuxSocketImpl::Listen().
|
virtual |
|
virtual |
|
virtual |
Implements ns3::UnixFd.
Definition at line 214 of file linux-socket-fd.cc.
References m_factory, and m_socket.
Referenced by ns3::LinuxSocketImpl::Poll().
void ns3::LinuxSocketFd::PollEvent | ( | int | flag | ) |
|
virtual |
Implements ns3::UnixFd.
Definition at line 50 of file linux-socket-fd.cc.
References Recvmsg().
|
virtual |
Implements ns3::UnixFd.
Definition at line 67 of file linux-socket-fd.cc.
References m_factory, m_socket, and m_statusFlags.
Referenced by Read(), and ns3::LinuxSocketImpl::RecvFrom().
|
virtual |
Implements ns3::UnixFd.
Definition at line 74 of file linux-socket-fd.cc.
References m_factory, m_socket, and m_statusFlags.
Referenced by ns3::LinuxSocketImpl::SendTo(), and Write().
|
virtual |
Implements ns3::UnixFd.
Definition at line 86 of file linux-socket-fd.cc.
References m_factory, and m_socket.
Referenced by ns3::LinuxSocketImpl::BindToNetDevice().
|
virtual |
Implements ns3::UnixFd.
Definition at line 188 of file linux-socket-fd.cc.
References ns3::Current(), and ns3::Thread::err.
|
virtual |
Implements ns3::UnixFd.
Definition at line 128 of file linux-socket-fd.cc.
|
virtual |
Implements ns3::UnixFd.
Definition at line 33 of file linux-socket-fd.cc.
References Sendmsg().
Referenced by ns3::LinuxSocketImpl::Send().
|
private |
Definition at line 60 of file linux-socket-fd.h.
Referenced by Accept(), Bind(), Close(), Connect(), Getpeername(), Getsockname(), Getsockopt(), Ioctl(), Listen(), Poll(), Recvmsg(), Sendmsg(), Setsockopt(), and Shutdown().
|
private |
Definition at line 63 of file linux-socket-fd.h.
|
private |
Definition at line 61 of file linux-socket-fd.h.
Referenced by Accept(), Bind(), Close(), Connect(), Getpeername(), Getsockname(), Getsockopt(), Ioctl(), Listen(), Poll(), Recvmsg(), Sendmsg(), Setsockopt(), and Shutdown().
|
private |