enet::TcpServer Class Reference

Public Member Functions

void setIpV4 (uint8_t _fist, uint8_t _second, uint8_t _third, uint8_t _quatro)
 
void setHostNane (const std::string &_name)
 
const std::string & getHostName ()
 
void setPort (uint16_t _port)
 
uint16_t getPort ()
 
bool link ()
 
bool unlink ()
 
enet::Tcp waitNext ()
 

Member Function Documentation

§ getHostName()

const std::string& enet::TcpServer::getHostName ( )
inline

Get the decriptive name hot the host.

Returns
the string requested

§ getPort()

uint16_t enet::TcpServer::getPort ( )
inline

Get the port number.

Returns
The requested port number.

§ setHostNane()

void enet::TcpServer::setHostNane ( const std::string &  _name)

set the Host name is the same things as set an Ip adress, but in test mode "127.0.0.1" or "localhost".

Parameters
[in]_nameHost name to connect.

§ setIpV4()

void enet::TcpServer::setIpV4 ( uint8_t  _fist,
uint8_t  _second,
uint8_t  _third,
uint8_t  _quatro 
)

Set the connection IP id.

Parameters
[in]_firstFirt number of the IP v4.
[in]_secondSecond number of the IP v4.
[in]_thirdThird number of the IP v4.
[in]_quatroQuatro number of the IP v4.

§ setPort()

void enet::TcpServer::setPort ( uint16_t  _port)

set the port number to connect or to spy

Parameters
[in]_portNumber of the port requested

§ waitNext()

enet::Tcp enet::TcpServer::waitNext ( )

Wait next extern connection.

Returns
element with the connection

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