Send()
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)
Arguments
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. |
Return Value
The number of bytes that are sent.
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)
Arguments
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. |
Return Value
The number of bytes that are sent.
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)
Arguments
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. |
Return Value
The number of bytes that are sent.
See Also
- Typedef ArrayPtr
- Typedef SharedPtr
- Class IPEndPoint
- Class UdpClient
- Class String
- Namespace System::Net::Sockets
- Library Aspose.Slides