Rudiments
Public Member Functions | List of all members
inetsocketutil Class Reference

Inherited by inetsocketclient, and inetsocketserver.

Public Member Functions

 inetsocketutil ()
 
virtual ~inetsocketutil ()
 
void setHost (const char *host)
 
void setPort (uint16_t port)
 
const char * getHost ()
 
uint16_t getPort ()
 

Detailed Description

The inetsocketutil class is just a base class for other classes that use inet sockets. It is unlikely to need to be used directly.

Constructor & Destructor Documentation

◆ inetsocketutil()

inetsocketutil::inetsocketutil ( )

Creates an instance of the inetsocketutil class.

◆ ~inetsocketutil()

virtual inetsocketutil::~inetsocketutil ( )
virtual

Deletes this instance of the inetsocketutil class.

Member Function Documentation

◆ getHost()

const char* inetsocketutil::getHost ( )

Returns the host (or address) that connect() will attempt to connect to or the address that listen() will listen on.

◆ getPort()

uint16_t inetsocketutil::getPort ( )

Returns the port that connect() will attempt to connect to or that listen() will listen on.

◆ setHost()

void inetsocketutil::setHost ( const char *  host)

Sets the host (or address) that connect() will attempt to connect to or the address that listen() will listen on.

This is not directly useful within this instance but child classes may use this values.

◆ setPort()

void inetsocketutil::setPort ( uint16_t  port)

Sets the port that connect() will attempt to connect to or that listen() wil listen on.

This is not directly useful within this instance but child classes may use this value.