|
The Pedigree Project
0.1
|
Inheritance diagram for UnixSocketSyscalls:
Collaboration diagram for UnixSocketSyscalls:Public Member Functions | |
| UnixSocketSyscalls (int domain, int type, int protocol) | |
| virtual | ~UnixSocketSyscalls () |
| virtual bool | create () |
| Implementation-specific final socket creation logic. | |
| virtual int | connect (const struct sockaddr *address, socklen_t addrlen) |
| virtual ssize_t | sendto_msg (const struct msghdr *msghdr) |
| virtual ssize_t | recvfrom_msg (struct msghdr *msghdr) |
| virtual int | listen (int backlog) |
| virtual int | bind (const struct sockaddr *address, socklen_t addrlen) |
| virtual int | accept (struct sockaddr *address, socklen_t *addrlen) |
| virtual int | shutdown (int how) |
| virtual int | getpeername (struct sockaddr *address, socklen_t *address_len) |
| virtual int | getsockname (struct sockaddr *address, socklen_t *address_len) |
| virtual int | setsockopt (int level, int optname, const void *optvalue, socklen_t optlen) |
| virtual int | getsockopt (int level, int optname, void *optvalue, socklen_t *optlen) |
| 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) |
| bool | pairWith (UnixSocketSyscalls *other) |
Public Member Functions inherited from NetworkSyscalls | |
| NetworkSyscalls (int domain, int type, int protocol) | |
| 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) |
| void | associate (FileDescriptor *fd) |
| int | getDomain () const |
| int | getType () const |
| int | getProtocol () const |
| FileDescriptor * | getFileDescriptor () const |
| bool | isBlocking () const |
| void | setBlocking (bool blocking) |
Private Member Functions | |
| NOT_COPYABLE_OR_ASSIGNABLE (UnixSocketSyscalls) | |
| UnixSocket * | getRemote () const |
| UnixSocket::SocketType | getSocketType () const |
Private Attributes | |
| UnixSocket * | m_Socket |
| UnixSocket * | m_Remote |
| String | m_LocalPath |
| String | m_RemotePath |
Additional Inherited Members | |
Protected Attributes inherited from NetworkSyscalls | |
| int | m_Domain |
| int | m_Type |
| int | m_Protocol |
| bool | m_Blocking |
| FileDescriptor * | m_Fd |
Definition at line 188 of file net-syscalls.h.
|
virtual |
Definition at line 1525 of file net-syscalls.cc.
|
virtual |
Implements NetworkSyscalls.
Definition at line 1761 of file net-syscalls.cc.
References Directory::addEphemeralFile(), create(), String::endswith(), FileDescriptor::fd, VFS::find(), Directory::fromFile(), File::getFullPath(), File::getName(), VFS::instance(), File::isDirectory(), and FileDescriptor::networkImpl.
|
virtual |
Implements NetworkSyscalls.
Definition at line 1547 of file net-syscalls.cc.
References VFS::find(), Network::getType(), VFS::instance(), and File::isSocket().
|
virtual |
Implements NetworkSyscalls.
Definition at line 1747 of file net-syscalls.cc.
| bool UnixSocketSyscalls::pairWith | ( | UnixSocketSyscalls * | other | ) |
Pair two UnixSocketSyscalls objects such that the referenced sockets directly communicate with each other.
Definition at line 2067 of file net-syscalls.cc.
References Network::getType().
|
virtual |
Implements NetworkSyscalls.
Definition at line 1700 of file net-syscalls.cc.
|
virtual |
Implements NetworkSyscalls.
Definition at line 1606 of file net-syscalls.cc.
References VFS::find(), Network::getType(), VFS::instance(), File::isSocket(), and File::write().
|
virtual |
Reimplemented from NetworkSyscalls.
Definition at line 1904 of file net-syscalls.cc.
References Dec, ERROR, and UnixSocket::select().
1.8.11