The Pedigree Project
0.1
|
Public Member Functions | |
NetworkSyscalls (int domain, int type, int protocol) | |
virtual bool | create () |
virtual int | connect (const struct sockaddr *address, socklen_t addrlen)=0 |
virtual ssize_t | sendto_msg (const struct msghdr *msghdr)=0 |
virtual ssize_t | recvfrom_msg (struct msghdr *msghdr)=0 |
virtual ssize_t | sendto (const void *buffer, size_t bufferlen, int flags, const struct sockaddr *address, socklen_t addrlen) |
virtual ssize_t | recvfrom (void *buffer, size_t bufferlen, int flags, struct sockaddr *address, socklen_t *addrlen) |
virtual int | listen (int backlog)=0 |
virtual int | bind (const struct sockaddr *address, socklen_t addrlen)=0 |
virtual int | accept (struct sockaddr *address, socklen_t *addrlen)=0 |
virtual int | shutdown (int how) |
virtual int | getpeername (struct sockaddr *address, socklen_t *address_len)=0 |
virtual int | getsockname (struct sockaddr *address, socklen_t *address_len)=0 |
virtual int | setsockopt (int level, int optname, const void *optvalue, socklen_t optlen)=0 |
virtual int | getsockopt (int level, int optname, void *optvalue, socklen_t *optlen)=0 |
virtual bool | canPoll () const |
virtual bool | poll (bool &read, bool &write, bool &error, Semaphore *waiter) |
virtual void | unPoll (Semaphore *waiter) |
virtual bool | monitor (Thread *pThread, Event *pEvent) |
virtual bool | unmonitor (Event *pEvent) |
void | associate (FileDescriptor *fd) |
int | getDomain () const |
int | getType () const |
int | getProtocol () const |
FileDescriptor * | getFileDescriptor () const |
bool | isBlocking () const |
void | setBlocking (bool blocking) |
Protected Attributes | |
int | m_Domain |
int | m_Type |
int | m_Protocol |
bool | m_Blocking |
FileDescriptor * | m_Fd |
Definition at line 51 of file net-syscalls.h.
|
virtual |
Implementation-specific final socket creation logic, implementations must set a SYSCALL_ERROR on failure.
Reimplemented in UnixSocketSyscalls, and LwipSocketSyscalls.
Definition at line 702 of file net-syscalls.cc.