uHTTP for C++
uHTTP::SocketCore Class Reference

#include <SocketCore.h>

Inheritance diagram for uHTTP::SocketCore:
uHTTP::DatagramSocket uHTTP::Socket uHTTP::MulticastSocket uHTTP::ServerSocket

Public Member Functions

 SocketCore ()
 
virtual ~SocketCore ()
 
void setSocket (SOCKET value)
 
SOCKET getSocket ()
 
bool isBound ()
 
bool close ()
 
void setLocalAddress (const std::string &addr)
 
const char * getLocalAddress ()
 
void setLocalPort (int port)
 
int getLocalPort ()
 
int getType ()
 
int getErrorCode () const
 
bool setReuseAddress (bool on)
 
bool setTimeout (time_t timeout)
 

Static Public Member Functions

static size_t GetInstanceCount ()
 
static SocketListGetInstanceList ()
 

Static Public Attributes

static const int STREAM
 
static const int DGRAM
 

Protected Member Functions

void setType (int value)
 
void setErrorCode (int code)
 

Protected Attributes

SOCKET sock
 

Private Attributes

int type
 
std::string localAddr
 
int localPort
 
int errorCode
 

Constructor & Destructor Documentation

◆ SocketCore()

uHTTP::SocketCore::SocketCore ( )

◆ ~SocketCore()

virtual uHTTP::SocketCore::~SocketCore ( )
virtual

Member Function Documentation

◆ close()

bool uHTTP::SocketCore::close ( )

◆ getErrorCode()

int uHTTP::SocketCore::getErrorCode ( ) const
inline

◆ GetInstanceCount()

static size_t uHTTP::SocketCore::GetInstanceCount ( )
static

◆ GetInstanceList()

static SocketList * uHTTP::SocketCore::GetInstanceList ( )
static

◆ getLocalAddress()

const char * uHTTP::SocketCore::getLocalAddress ( )
inline

◆ getLocalPort()

int uHTTP::SocketCore::getLocalPort ( )
inline

◆ getSocket()

SOCKET uHTTP::SocketCore::getSocket ( )
inline

◆ getType()

int uHTTP::SocketCore::getType ( )
inline

◆ isBound()

bool uHTTP::SocketCore::isBound ( )

◆ setErrorCode()

void uHTTP::SocketCore::setErrorCode ( int code)
inlineprotected

◆ setLocalAddress()

void uHTTP::SocketCore::setLocalAddress ( const std::string & addr)
inline

◆ setLocalPort()

void uHTTP::SocketCore::setLocalPort ( int port)
inline

◆ setReuseAddress()

bool uHTTP::SocketCore::setReuseAddress ( bool on)

◆ setSocket()

void uHTTP::SocketCore::setSocket ( SOCKET value)
inline

◆ setTimeout()

bool uHTTP::SocketCore::setTimeout ( time_t timeout)

◆ setType()

void uHTTP::SocketCore::setType ( int value)
inlineprotected

Field Documentation

◆ DGRAM

const int uHTTP::SocketCore::DGRAM
static

◆ errorCode

int uHTTP::SocketCore::errorCode
private

◆ localAddr

std::string uHTTP::SocketCore::localAddr
private

◆ localPort

int uHTTP::SocketCore::localPort
private

◆ sock

SOCKET uHTTP::SocketCore::sock
protected

◆ STREAM

const int uHTTP::SocketCore::STREAM
static

◆ type

int uHTTP::SocketCore::type
private

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