端点
更多...
#include <rmvl/io/socket.hpp>
◆ Endpoint() [1/2]
| rm::Endpoint::Endpoint |
( |
IpProtocol auto | ip, |
|
|
uint16_t | port ) |
|
inline |
构造网络 Socket 端点
- 参数
-
| [in] | ip | 网络协议 |
| [in] | port | 端口号
Endpoint(IpProtocol auto ip, uint16_t port) 构造网络 Socket 端点 定义 socket.hpp:103
static tcp v4() 构造端点,以表示 IPv4 TCP 协议
|
◆ Endpoint() [2/2]
| rm::Endpoint::Endpoint |
( |
LocalProtocol auto | lp, |
|
|
std::string_view | path ) |
|
inline |
构造本地 Socket 端点
- 参数
-
| [in] | lp | 本地协议 |
| [in] | path | 路径
static ipc stream() 构造端点,以表示本地流式协议
|
◆ family()
| int rm::Endpoint::family |
( |
| ) |
const |
|
inline |
◆ path()
| std::string rm::Endpoint::path |
( |
| ) |
const |
|
inline |
◆ port()
| uint16_t rm::Endpoint::port |
( |
| ) |
const |
|
inline |
◆ type()
| int rm::Endpoint::type |
( |
| ) |
const |
|
inline |
该类的文档由以下文件生成: