端点
更多...
#include <rmvl/io/socket.hpp>
|
| static constexpr uint16_t | ANY_PORT = 0 |
| | 任意可用或自动分配端口标识
|
◆ Endpoint()
| rm::Endpoint::Endpoint |
( |
const ip::Protocol & | ip, |
|
|
uint16_t | port ) |
|
inline |
构造 Socket 端点
- 参数
-
| [in] | ip | 网络协议 |
| [in] | port | 端口号,为 0 时表示任意可用或自动分配
Endpoint(const ip::Protocol &ip, uint16_t port) 构造 Socket 端点 定义 socket.hpp:288
Protocol v4() 构造端点,以表示 IPv4 TCP 协议
|
◆ family()
| int rm::Endpoint::family |
( |
| ) |
const |
|
inline |
◆ port()
| uint16_t rm::Endpoint::port |
( |
| ) |
const |
|
inline |
◆ type()
| int rm::Endpoint::type |
( |
| ) |
const |
|
inline |
◆ ANY_PORT
| uint16_t rm::Endpoint::ANY_PORT = 0 |
|
staticconstexpr |