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

#include <PhysicalSocket.h>

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

Public Types

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 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::PhysicalSocket< SocketAddressT >

Definition at line 32 of file PhysicalSocket.h.

Member Typedef Documentation

◆ SocketAddress

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

Definition at line 35 of file PhysicalSocket.h.

◆ Super

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

Definition at line 34 of file PhysicalSocket.h.

Member Enumeration Documentation

◆ SHUT

template<typename SocketAddressT >
enum net::phy::stream::PhysicalSocket::SHUT
Enumerator
WR 
RD 
RDWR 

Definition at line 38 of file PhysicalSocket.h.

Member Function Documentation

◆ shutdown()

template<typename SocketAddress >
int net::phy::stream::PhysicalSocket< SocketAddress >::shutdown ( SHUT how)

Definition at line 29 of file PhysicalSocket.hpp.

29 {
31 }
int getFd() const
int shutdown(int sockfd, int how)
Definition socket.cpp:89

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