System::Net::Sockets::UdpClient::Send method
Contents
[
Hide
]UdpClient::Send(System::ArrayPtr<uint8_t>, int32_t, System::SharedPtr<IPEndPoint>) method
Sends a UDP datagram to the host at the remote end point.
int32_t System::Net::Sockets::UdpClient::Send(System::ArrayPtr<uint8_t> dgram, int32_t bytes, System::SharedPtr<IPEndPoint> endPoint)
Parameter | Type | Description |
---|---|---|
dgram | System::ArrayPtr<uint8_t> | An array of type Byte to send |
bytes | int32_t | The number of bytes in the datagram. |
endPoint | System::SharedPtr<IPEndPoint> | An IPEndPoint that represents the host and port to which to send the datagram. |
ReturnValue
The number of bytes that are sent.
See Also
- Typedef ArrayPtr
- Typedef SharedPtr
- Class IPEndPoint
- Class UdpClient
- Namespace System::Net::Sockets
- Library Aspose.PUB for C++
UdpClient::Send(System::ArrayPtr<uint8_t>, int32_t, String, int32_t) method
Sends a UDP datagram to the specified port on the specified remote host.
int32_t System::Net::Sockets::UdpClient::Send(System::ArrayPtr<uint8_t> dgram, int32_t bytes, String hostname, int32_t port)
Parameter | Type | Description |
---|---|---|
dgram | System::ArrayPtr<uint8_t> | An array of type Byte to send |
bytes | int32_t | The number of bytes in the datagram. |
hostname | String | A name of the remote host. |
port | int32_t | A remote port number. |
ReturnValue
The number of bytes that are sent.
See Also
- Typedef ArrayPtr
- Class String
- Class UdpClient
- Namespace System::Net::Sockets
- Library Aspose.PUB for C++
UdpClient::Send(System::ArrayPtr<uint8_t>, int32_t) method
Sends a UDP datagram to a remote host.
int32_t System::Net::Sockets::UdpClient::Send(System::ArrayPtr<uint8_t> dgram, int32_t bytes)
Parameter | Type | Description |
---|---|---|
dgram | System::ArrayPtr<uint8_t> | An array of type Byte to send. |
bytes | int32_t | The number of bytes in the datagram. |
ReturnValue
The number of bytes that are sent.
See Also
- Typedef ArrayPtr
- Class UdpClient
- Namespace System::Net::Sockets
- Library Aspose.PUB for C++