Search Results
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()
|
inline |
Get the decriptive name hot the host.
- Returns
- the string requested
§ 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] _name Host 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] _first Firt number of the IP v4. [in] _second Second number of the IP v4. [in] _third Third number of the IP v4. [in] _quatro Quatro number of the IP v4.
§ setPort()
void enet::TcpServer::setPort | ( | uint16_t | _port | ) |
set the port number to connect or to spy
- Parameters
-
[in] _port Number 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:
- framework/atria-soft/enet/enet/TcpServer.hpp