System::Net::ServicePoint::SetTcpKeepAlive 方法
ServicePoint::SetTcpKeepAlive method
设置指示是否启用 ‘Keep-Alive’ 选项的值。
void System::Net::ServicePoint::SetTcpKeepAlive(bool enabled, int32_t keepAliveTime, int32_t keepAliveInterval)
| 参数 | 类型 | 描述 |
|---|---|---|
| 已启用 | bool | 指示 ‘Keep-Alive’ 选项是否已启用的值。 |
| keepAliveTime | int32_t | 在首次发送 ‘Keep-Alive’ 包之前的超时时间(毫秒)。 |
| keepAliveInterval | int32_t | 发送 ‘Keep-Alive’ 包之间的超时时间(毫秒)。 |
另见
- Class ServicePoint
- Namespace System::Net
- Library Aspose.Font for C++