System::Net::Sockets::Socket::Connect 方法
内容
[
隐藏
]Socket::Connect(String, int32_t) method
建立到指定远程端点的连接。
void System::Net::Sockets::Socket::Connect(String host, int32_t port)
| 参数 | 类型 | 描述 |
|---|---|---|
| host | String | 远程主机名。 |
| port | int32_t | 远程主机的端口号。 |
另见
- Class String
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Font for C++
Socket::Connect(System::ArrayPtr<System::SharedPtr<IPAddress>>, int32_t) method
建立到指定远程端点的连接。
void System::Net::Sockets::Socket::Connect(System::ArrayPtr<System::SharedPtr<IPAddress>> addresses, int32_t port)
| 参数 | 类型 | 描述 |
|---|---|---|
| addresses | System::ArrayPtr<System::SharedPtr<IPAddress>> | 远程主机的 IP 地址。 |
| port | int32_t | 远程主机的端口号。 |
另见
- Typedef ArrayPtr
- Typedef SharedPtr
- Class IPAddress
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Font for C++
Socket::Connect(System::SharedPtr<EndPoint>) method
建立到指定远程端点的连接。
void System::Net::Sockets::Socket::Connect(System::SharedPtr<EndPoint> remoteEP)
| 参数 | 类型 | 描述 |
|---|---|---|
| remoteEP | System::SharedPtr<EndPoint> | 远程端点。 |
另见
- Typedef SharedPtr
- Class EndPoint
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Font for C++
Socket::Connect(System::SharedPtr<IPAddress>, int32_t) method
建立到指定远程端点的连接。
void System::Net::Sockets::Socket::Connect(System::SharedPtr<IPAddress> address, int32_t port)
| 参数 | 类型 | 描述 |
|---|---|---|
| 地址 | System::SharedPtr<IPAddress> | 远程主机 IP 地址。 |
| port | int32_t | 远程主机的端口号。 |
另见
- Typedef SharedPtr
- Class IPAddress
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Font for C++