Send()

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

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.

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

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.

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

ParameterTypeDescription
dgramSystem::ArrayPtr<uint8_t>An array of type Byte to send.
bytesint32_tThe number of bytes in the datagram.

Return Value

The number of bytes that are sent.

See Also