System::Net::Sockets::UdpClient::Send method

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)
ParameterTypeDescription
dgramSystem::ArrayPtr<uint8_t>An array of type Byte to send.
bytesint32_tThe number of bytes in the datagram.

ReturnValue

The number of bytes that are sent.

See Also

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)
ParameterTypeDescription
dgramSystem::ArrayPtr<uint8_t>An array of type Byte to send
bytesint32_tThe number of bytes in the datagram.
hostnameStringA name of the remote host.
portint32_tA remote port number.

ReturnValue

The number of bytes that are sent.

See Also

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)
ParameterTypeDescription
dgramSystem::ArrayPtr<uint8_t>An array of type Byte to send
bytesint32_tThe number of bytes in the datagram.
endPointSystem::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