DDS  ver. 3.5.3.8.g5fe284b
Public Member Functions | List of all members
MiscCommon::INet::smart_socket Class Reference

A wrapper for a basic Socket. More...

#include <INet.h>

Inheritance diagram for MiscCommon::INet::smart_socket:
MiscCommon::NONCopyable

Public Member Functions

 smart_socket ()
 
 smart_socket (int _Socket)
 
 smart_socket (int _domain, int _type, int _protocol, bool _Block=false)
 
 ~smart_socket ()
 
 operator int () const
 
int operator= (const int &_Val)
 
Socket_t detach ()
 
Socket_t get ()
 
int set_nonblock (bool _val=true)
 
void close ()
 
bool is_valid () const
 
int shutdown (int _How=SHUT_RDWR)
 
int is_read_ready (size_t m_SecTimeOut, size_t m_USecTimeOut=0)
 This function indicates that socket is ready to be read (for non-blocking sockets) More...
 

Additional Inherited Members

- Protected Member Functions inherited from MiscCommon::NONCopyable
 NONCopyable ()
 
 ~NONCopyable ()
 

Detailed Description

A wrapper for a basic Socket.

Constructor & Destructor Documentation

◆ smart_socket() [1/3]

MiscCommon::INet::smart_socket::smart_socket ( )
inline

◆ smart_socket() [2/3]

MiscCommon::INet::smart_socket::smart_socket ( int  _Socket)
inline

◆ smart_socket() [3/3]

MiscCommon::INet::smart_socket::smart_socket ( int  _domain,
int  _type,
int  _protocol,
bool  _Block = false 
)
inline

◆ ~smart_socket()

MiscCommon::INet::smart_socket::~smart_socket ( )
inline

Member Function Documentation

◆ close()

void MiscCommon::INet::smart_socket::close ( )
inline

◆ detach()

Socket_t MiscCommon::INet::smart_socket::detach ( )
inline

◆ get()

Socket_t MiscCommon::INet::smart_socket::get ( )
inline

◆ is_read_ready()

int MiscCommon::INet::smart_socket::is_read_ready ( size_t  m_SecTimeOut,
size_t  m_USecTimeOut = 0 
)
inline

This function indicates that socket is ready to be read (for non-blocking sockets)

◆ is_valid()

bool MiscCommon::INet::smart_socket::is_valid ( ) const
inline

◆ operator int()

MiscCommon::INet::smart_socket::operator int ( ) const
inline

◆ operator=()

int MiscCommon::INet::smart_socket::operator= ( const int &  _Val)
inline

◆ set_nonblock()

int MiscCommon::INet::smart_socket::set_nonblock ( bool  _val = true)
inline

◆ shutdown()

int MiscCommon::INet::smart_socket::shutdown ( int  _How = SHUT_RDWR)
inline

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