SNode.C
|
#include <PhysicalSocketServer.h>
Public Types | |
using | Super = net::phy::stream::PhysicalSocket<SocketAddressT> |
using | SocketAddress = SocketAddressT |
![]() | |
enum | SHUT { WR = SHUT_WR , RD = SHUT_RD , RDWR = SHUT_RDWR } |
using | Super = net::phy::PhysicalSocket<SocketAddressT> |
using | SocketAddress = SocketAddressT |
![]() | |
enum | Flags { NONE = 0 , NONBLOCK = SOCK_NONBLOCK , CLOEXIT = SOCK_CLOEXEC } |
Public Member Functions | |
int | listen (int backlog) |
int | accept () |
int | accept4 (int flags) |
![]() | |
int | shutdown (SHUT how) |
![]() | |
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, const PhysicalSocketOption > &socketOptions, 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) |
SocketAddress | getBindAddress () const |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
using | SocketAddress = SocketAddressT |
![]() | |
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 () |
![]() | |
SocketAddress | bindAddress |
int | domain = 0 |
int | type = 0 |
int | protocol = 0 |
Definition at line 32 of file PhysicalSocketServer.h.
using net::phy::stream::PhysicalSocketServer< SocketAddressT >::SocketAddress = SocketAddressT |
Definition at line 35 of file PhysicalSocketServer.h.
using net::phy::stream::PhysicalSocketServer< SocketAddressT >::Super = net::phy::stream::PhysicalSocket<SocketAddressT> |
Definition at line 34 of file PhysicalSocketServer.h.
int net::phy::stream::PhysicalSocketServer< SocketAddress >::accept | ( | ) |
Definition at line 36 of file PhysicalSocketServer.hpp.
int net::phy::stream::PhysicalSocketServer< SocketAddress >::accept4 | ( | int | flags | ) |
Definition at line 41 of file PhysicalSocketServer.hpp.
int net::phy::stream::PhysicalSocketServer< SocketAddress >::listen | ( | int | backlog | ) |
Definition at line 31 of file PhysicalSocketServer.hpp.