#include <Socket.h>
Public Member Functions | |
| Socket () | |
| ~Socket () override | |
| ssize_t | sendFd (SocketAddress &&destAddress, int sendfd) |
| ssize_t | sendFd (SocketAddress &destAddress, int sendfd) |
| ssize_t | recvFd (int *recvfd) |
| PhysicalSocket & | operator= (PhysicalSocket &&physicalSocket) noexcept |
| Public Member Functions inherited from net::un::phy::PhysicalSocket< net::phy::dgram::PeerSocket > | |
| PhysicalSocket (int type, int protocol) | |
| PhysicalSocket (PhysicalSocket &&physicalSocket) noexcept | |
| PhysicalSocket & | operator= (PhysicalSocket &&physicalSocket) noexcept |
| ~PhysicalSocket () override | |
| int | bind (SocketAddress &bindAddress) |
| Public Member Functions inherited from net::phy::PhysicalSocket< SocketAddressT > | |
| PhysicalSocket ()=delete | |
| PhysicalSocket (PhysicalSocket &)=delete | |
| PhysicalSocket & | operator= (PhysicalSocket &)=delete |
| PhysicalSocket (const PhysicalSocket &)=delete | |
| PhysicalSocket & | operator= (const PhysicalSocket &)=delete |
| PhysicalSocket (int fd, const SocketAddress &bindAddress) | |
| int | open (const std::map< int, std::map< int, PhysicalSocketOption > > &socketOptionsMapMap, Flags flags) |
| int | bind (SocketAddress &bindAddress) |
| bool | isValid () const |
| int | getSockError (int &cErrno) const |
| int | getSockName (typename SocketAddress::SockAddr &localSockAddr, typename SocketAddress::SockLen &localSockAddrLen) |
| int | getPeerName (typename SocketAddress::SockAddr &remoteSockAddr, typename SocketAddress::SockLen &remoteSockAddrLen) |
| const SocketAddress & | getBindAddress () const |
| Public Member Functions inherited from core::Descriptor | |
| Descriptor ()=delete | |
| Descriptor (const Descriptor &d)=delete | |
| Descriptor & | operator= (int fd) |
| Descriptor & | operator= (const Descriptor &descriptor)=delete |
| Descriptor & | operator= (Descriptor &&descriptor) noexcept |
| int | getFd () const |
Private Types | |
| using | Super = net::un::phy::PhysicalSocket<net::phy::dgram::PeerSocket> |
Additional Inherited Members | |
| Public Types inherited from net::un::phy::PhysicalSocket< net::phy::dgram::PeerSocket > | |
| using | Super |
| Public Types inherited from net::phy::dgram::PeerSocket< SocketAddressT > | |
| using | SocketAddress = SocketAddressT |
| Public Types inherited from net::phy::PhysicalSocket< SocketAddressT > | |
| enum | Flags { NONE = 0 , NONBLOCK = SOCK_NONBLOCK , CLOEXIT = SOCK_CLOEXEC } |
| Protected Types inherited from net::phy::dgram::PeerSocket< SocketAddressT > | |
| using | Super = net::phy::PhysicalSocket<SocketAddressT> |
| Protected Types inherited from net::phy::PhysicalSocket< SocketAddressT > | |
| using | SocketAddress = SocketAddressT |
| Protected Member Functions inherited from net::phy::PhysicalSocket< SocketAddressT > | |
| PhysicalSocket (int domain, int type, int protocol) | |
| PhysicalSocket (PhysicalSocket &&physicalSocket) noexcept=default | |
| PhysicalSocket & | operator= (PhysicalSocket &&) noexcept=default |
| ~PhysicalSocket () override | |
| Protected Member Functions inherited from core::Descriptor | |
| Descriptor (int fd) | |
| Descriptor (Descriptor &&descriptor) noexcept | |
| virtual | ~Descriptor () |
| Protected Attributes inherited from net::phy::PhysicalSocket< SocketAddressT > | |
| SocketAddress | bindAddress |
| int | domain = 0 |
| int | type = 0 |
| int | protocol = 0 |
| net::un::dgram::Socket::Socket | ( | ) |
Definition at line 56 of file Socket.cpp.
References net::un::phy::PhysicalSocket< PhysicalPeerSocketT >::PhysicalSocket().
|
override |
Definition at line 60 of file Socket.cpp.
|
noexcept |
| ssize_t net::un::dgram::Socket::recvFd | ( | int * | recvfd | ) |
Definition at line 97 of file Socket.cpp.
References core::Descriptor::getFd().
| ssize_t net::un::dgram::Socket::sendFd | ( | SocketAddress && | destAddress, |
| int | sendfd ) |
Definition at line 63 of file Socket.cpp.
References sendFd().
| ssize_t net::un::dgram::Socket::sendFd | ( | SocketAddress & | destAddress, |
| int | sendfd ) |
Definition at line 67 of file Socket.cpp.
References core::Descriptor::getFd(), net::SocketAddress< SockAddrT >::getSockAddr(), and net::SocketAddress< SockAddrT >::getSockAddrLen().
Referenced by sendFd().