SNode.C
|
#include <PhysicalSocket.h>
Public Types | |
enum | Flags { NONE = 0 , NONBLOCK = SOCK_NONBLOCK , CLOEXIT = SOCK_CLOEXEC } |
Protected Types | |
using | SocketAddress = SocketAddressT |
Protected Member Functions | |
PhysicalSocket (int domain, int type, int protocol) | |
PhysicalSocket (PhysicalSocket &&physicalSocket) noexcept=default | |
PhysicalSocket & | operator= (PhysicalSocket &&) noexcept=default |
~PhysicalSocket () override | |
![]() | |
Descriptor (int fd) | |
Descriptor (Descriptor &&descriptor) noexcept | |
virtual | ~Descriptor () |
Protected Attributes | |
SocketAddress | bindAddress |
int | domain = 0 |
int | type = 0 |
int | protocol = 0 |
Private Types | |
using | Super = core::Descriptor |
Private Member Functions | |
int | setSockopt (int level, int optname, const void *optval, typename SocketAddress::SockLen optlen) const |
int | getSockopt (int level, int optname, void *optval, typename SocketAddress::SockLen *optlen) const |
Definition at line 38 of file PhysicalSocket.h.
|
protected |
Definition at line 46 of file PhysicalSocket.h.
|
private |
Definition at line 40 of file PhysicalSocket.h.
enum net::phy::PhysicalSocket::Flags |
|
protected |
Definition at line 32 of file PhysicalSocket.hpp.
References net::phy::PhysicalSocket< SocketAddressT >::domain, net::phy::PhysicalSocket< SocketAddressT >::protocol, and net::phy::PhysicalSocket< SocketAddressT >::type.
|
protecteddefaultnoexcept |
|
overrideprotected |
Definition at line 54 of file PhysicalSocket.hpp.
|
delete |
|
delete |
|
delete |
net::phy::PhysicalSocket< SocketAddress >::PhysicalSocket | ( | int | fd, |
const SocketAddress & | bindAddress ) |
Definition at line 40 of file PhysicalSocket.hpp.
References net::phy::PhysicalSocket< SocketAddressT >::bindAddress, net::phy::PhysicalSocket< SocketAddressT >::domain, net::phy::PhysicalSocket< SocketAddressT >::getSockopt(), and net::phy::PhysicalSocket< SocketAddressT >::type.
int net::phy::PhysicalSocket< SocketAddress >::bind | ( | SocketAddress & | bindAddress | ) |
Definition at line 78 of file PhysicalSocket.hpp.
SocketAddress net::phy::PhysicalSocket< SocketAddress >::getBindAddress | ( | ) | const |
Definition at line 123 of file PhysicalSocket.hpp.
References net::phy::PhysicalSocket< SocketAddressT >::bindAddress.
int net::phy::PhysicalSocket< SocketAddress >::getPeerName | ( | typename SocketAddress::SockAddr & | remoteSockAddr, |
typename SocketAddress::SockLen & | remoteSockAddrLen ) |
Definition at line 117 of file PhysicalSocket.hpp.
int net::phy::PhysicalSocket< SocketAddress >::getSockError | ( | int & | cErrno | ) | const |
Definition at line 94 of file PhysicalSocket.hpp.
References net::phy::PhysicalSocket< SocketAddressT >::getSockopt().
int net::phy::PhysicalSocket< SocketAddress >::getSockName | ( | typename SocketAddress::SockAddr & | localSockAddr, |
typename SocketAddress::SockLen & | localSockAddrLen ) |
Definition at line 111 of file PhysicalSocket.hpp.
|
private |
Definition at line 106 of file PhysicalSocket.hpp.
Referenced by net::phy::PhysicalSocket< SocketAddressT >::getSockError(), and net::phy::PhysicalSocket< SocketAddressT >::PhysicalSocket().
bool net::phy::PhysicalSocket< SocketAddress >::isValid | ( | ) | const |
Definition at line 89 of file PhysicalSocket.hpp.
int net::phy::PhysicalSocket< SocketAddress >::open | ( | const std::map< int, const PhysicalSocketOption > & | socketOptions, |
Flags | flags ) |
Definition at line 58 of file PhysicalSocket.hpp.
|
delete |
|
protecteddefaultnoexcept |
|
delete |
|
private |
Definition at line 101 of file PhysicalSocket.hpp.
|
protected |
Definition at line 82 of file PhysicalSocket.h.
Referenced by net::phy::PhysicalSocket< SocketAddressT >::getBindAddress(), and net::phy::PhysicalSocket< SocketAddressT >::PhysicalSocket().
|
protected |
Definition at line 84 of file PhysicalSocket.h.
Referenced by net::phy::PhysicalSocket< SocketAddressT >::PhysicalSocket(), and net::phy::PhysicalSocket< SocketAddressT >::PhysicalSocket().
|
protected |
Definition at line 86 of file PhysicalSocket.h.
Referenced by net::phy::PhysicalSocket< SocketAddressT >::PhysicalSocket().
|
protected |
Definition at line 85 of file PhysicalSocket.h.
Referenced by net::phy::PhysicalSocket< SocketAddressT >::PhysicalSocket(), and net::phy::PhysicalSocket< SocketAddressT >::PhysicalSocket().