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, 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
 
- 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 32 of file PhysicalSocketServer.h.

Member Typedef Documentation

◆ SocketAddress

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

Definition at line 35 of file PhysicalSocketServer.h.

◆ Super

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

Definition at line 34 of file PhysicalSocketServer.h.

Member Function Documentation

◆ accept()

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

Definition at line 36 of file PhysicalSocketServer.hpp.

36 {
37 return core::system::accept(Super::getFd(), nullptr, nullptr);
38 }
int getFd() const
int accept(int sockfd, sockaddr *addr, socklen_t *addrlen)
Definition socket.cpp:45

◆ accept4()

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

Definition at line 41 of file PhysicalSocketServer.hpp.

41 {
42 return core::system::accept4(Super::getFd(), nullptr, nullptr, flags);
43 }
int accept4(int sockfd, sockaddr *addr, socklen_t *addrlen, int flags)
Definition socket.cpp:50

◆ listen()

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

Definition at line 31 of file PhysicalSocketServer.hpp.

31 {
32 return core::system::listen(Super::getFd(), backlog);
33 }
int listen(int sockfd, int backlog)
Definition socket.cpp:40

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