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

#include <PhysicalSocketClient.h>

Inheritance diagram for net::phy::stream::PhysicalSocketClient< SocketAddressT >:
Collaboration diagram for net::phy::stream::PhysicalSocketClient< 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 connect (SocketAddress &remoteAddress)
 
- 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
 

Static Public Member Functions

static bool connectInProgress (int cErrno)
 

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

Definition at line 32 of file PhysicalSocketClient.h.

Member Typedef Documentation

◆ SocketAddress

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

Definition at line 35 of file PhysicalSocketClient.h.

◆ Super

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

Definition at line 34 of file PhysicalSocketClient.h.

Member Function Documentation

◆ connect()

template<typename SocketAddress >
int net::phy::stream::PhysicalSocketClient< SocketAddress >::connect ( SocketAddress & remoteAddress)

Definition at line 33 of file PhysicalSocketClient.hpp.

33 {
34 return core::system::connect(Super::getFd(), &remoteAddress.getSockAddr(), remoteAddress.getSockAddrLen());
35 }
int getFd() const
int connect(int sockfd, const sockaddr *addr, socklen_t addrlen)
Definition socket.cpp:54

◆ connectInProgress()

template<typename SocketAddress >
bool net::phy::stream::PhysicalSocketClient< SocketAddress >::connectInProgress ( int cErrno)
static

Definition at line 38 of file PhysicalSocketClient.hpp.

38 {
39 return cErrno == EINPROGRESS;
40 }

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