System::Net::Sockets::UdpClient::Send 方法
内容
[
隐藏
]UdpClient::Send(System::ArrayPtr<uint8_t>, int32_t) method
向远程主机发送 UDP 数据报。
int32_t System::Net::Sockets::UdpClient::Send(System::ArrayPtr<uint8_t> dgram, int32_t bytes)
| 参数 | 类型 | 描述 |
|---|---|---|
| dgram | System::ArrayPtr<uint8_t> | 一个用于发送的 Byte 类型数组。 |
| 字节 | int32_t | 数据报中的字节数。 |
ReturnValue
已发送的字节数。
另见
- Typedef ArrayPtr
- Class UdpClient
- Namespace System::Net::Sockets
- Library Aspose.Font for C++
UdpClient::Send(System::ArrayPtr<uint8_t>, int32_t, String, int32_t) method
向指定远程主机的指定端口发送 UDP 数据报。
int32_t System::Net::Sockets::UdpClient::Send(System::ArrayPtr<uint8_t> dgram, int32_t bytes, String hostname, int32_t port)
| 参数 | 类型 | 描述 |
|---|---|---|
| dgram | System::ArrayPtr<uint8_t> | 用于发送的 Byte 类型数组 |
| 字节 | int32_t | 数据报中的字节数。 |
| hostname | String | 远程主机的名称。 |
| port | int32_t | 远程端口号。 |
ReturnValue
已发送的字节数。
另见
- Typedef ArrayPtr
- Class String
- Class UdpClient
- Namespace System::Net::Sockets
- Library Aspose.Font for C++
UdpClient::Send(System::ArrayPtr<uint8_t>, int32_t, System::SharedPtr<IPEndPoint>) method
向远程端点的主机发送 UDP 数据报。
int32_t System::Net::Sockets::UdpClient::Send(System::ArrayPtr<uint8_t> dgram, int32_t bytes, System::SharedPtr<IPEndPoint> endPoint)
| 参数 | 类型 | 描述 |
|---|---|---|
| dgram | System::ArrayPtr<uint8_t> | 用于发送的 Byte 类型数组 |
| 字节 | int32_t | 数据报中的字节数。 |
| endPoint | System::SharedPtr<IPEndPoint> | 表示要发送数据报的主机和端口的 IPEndPoint。 |
ReturnValue
已发送的字节数。
另见
- Typedef ArrayPtr
- Typedef SharedPtr
- Class IPEndPoint
- Class UdpClient
- Namespace System::Net::Sockets
- Library Aspose.Font for C++