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