Rudiments
|
#include <inetsocketutil.h>
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 () |
The inetsocketutil class is just a base class for other classes that use inet sockets. It is unlikely to need to be used directly.
inetsocketutil::inetsocketutil | ( | ) |
Creates an instance of the inetsocketutil class.
|
virtual |
Deletes this instance of the inetsocketutil class.
Returns the host (or address) that connect() will attempt to connect to or the address that listen() will listen on.
uint16_t inetsocketutil::getPort | ( | ) |
Returns the port that connect() will attempt to connect to or that listen() will listen on.
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.
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.