SNode.C
Loading...
Searching...
No Matches
net::phy::stream::PhysicalSocketServer< SocketAddressT > Class Template Reference

#include <PhysicalSocketServer.h>

Inheritance diagram for net::phy::stream::PhysicalSocketServer< SocketAddressT >:
Collaboration diagram for net::phy::stream::PhysicalSocketServer< SocketAddressT >:

Public Types

using Super = net::phy::stream::PhysicalSocket<SocketAddressT>
using SocketAddress = SocketAddressT
Public Types inherited from net::phy::stream::PhysicalSocket< SocketAddressT >
enum  SHUT { WR = SHUT_WR , RD = SHUT_RD , RDWR = SHUT_RDWR }
using Super = net::phy::PhysicalSocket<SocketAddressT>
using SocketAddress = SocketAddressT
Public Types inherited from net::phy::PhysicalSocket< SocketAddressT >
enum  Flags { NONE = 0 , NONBLOCK = SOCK_NONBLOCK , CLOEXIT = SOCK_CLOEXEC }

Public Member Functions

int listen (int backlog)
int accept ()
int accept4 (int flags)
Public Member Functions inherited from net::phy::stream::PhysicalSocket< SocketAddressT >
int shutdown (SHUT how)
Public Member Functions inherited from net::phy::PhysicalSocket< SocketAddressT >
 PhysicalSocket ()=delete
 PhysicalSocket (PhysicalSocket &)=delete
PhysicalSocketoperator= (PhysicalSocket &)=delete
 PhysicalSocket (const PhysicalSocket &)=delete
PhysicalSocketoperator= (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 SocketAddressgetBindAddress () const
Public Member Functions inherited from core::Descriptor
 Descriptor ()=delete
 Descriptor (const Descriptor &d)=delete
Descriptoroperator= (int fd)
Descriptoroperator= (const Descriptor &descriptor)=delete
Descriptoroperator= (Descriptor &&descriptor) noexcept
int getFd () const

Additional Inherited Members

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
PhysicalSocketoperator= (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

Detailed Description

template<typename SocketAddressT>
class net::phy::stream::PhysicalSocketServer< SocketAddressT >

Definition at line 54 of file PhysicalSocketServer.h.

Member Typedef Documentation

◆ SocketAddress

template<typename SocketAddressT>
using net::phy::stream::PhysicalSocketServer< SocketAddressT >::SocketAddress = SocketAddressT

Definition at line 57 of file PhysicalSocketServer.h.

◆ Super

template<typename SocketAddressT>
using net::phy::stream::PhysicalSocketServer< SocketAddressT >::Super = net::phy::stream::PhysicalSocket<SocketAddressT>

Definition at line 56 of file PhysicalSocketServer.h.

Member Function Documentation

◆ accept()

Definition at line 58 of file PhysicalSocketServer.hpp.

58 {
59 return core::system::accept(Super::getFd(), nullptr, nullptr);
60 }
int getFd() const
int accept(int sockfd, sockaddr *addr, socklen_t *addrlen)
Definition socket.cpp:67

References core::system::accept().

Here is the call graph for this function:

◆ accept4()

template<typename SocketAddress>
int net::phy::stream::PhysicalSocketServer< SocketAddress >::accept4 ( int flags)

Definition at line 63 of file PhysicalSocketServer.hpp.

63 {
64 return core::system::accept4(Super::getFd(), nullptr, nullptr, flags);
65 }
int accept4(int sockfd, sockaddr *addr, socklen_t *addrlen, int flags)
Definition socket.cpp:72

References core::system::accept4().

Here is the call graph for this function:

◆ listen()

template<typename SocketAddress>
int net::phy::stream::PhysicalSocketServer< SocketAddress >::listen ( int backlog)

Definition at line 53 of file PhysicalSocketServer.hpp.

53 {
55 }
int listen(int sockfd, int backlog)
Definition socket.cpp:62

References core::system::listen().

Here is the call graph for this function:

The documentation for this class was generated from the following files: