System::Net::Sockets::UdpClient::Send metodo

UdpClient::Send(System::ArrayPtr<uint8_t>, int32_t) method

Invia un datagramma UDP a un host remoto.

int32_t System::Net::Sockets::UdpClient::Send(System::ArrayPtr<uint8_t> dgram, int32_t bytes)
ParametroTipoDescrizione
dgramSystem::ArrayPtr<uint8_t>Un array di tipo Byte da inviare.
byteint32_tIl numero di byte nel datagramma.

ReturnValue

Il numero di byte che vengono inviati.

Vedi anche

UdpClient::Send(System::ArrayPtr<uint8_t>, int32_t, String, int32_t) method

Invia un datagramma UDP alla porta specificata sull’host remoto specificato.

int32_t System::Net::Sockets::UdpClient::Send(System::ArrayPtr<uint8_t> dgram, int32_t bytes, String hostname, int32_t port)
ParametroTipoDescrizione
dgramSystem::ArrayPtr<uint8_t>Un array di tipo Byte da inviare
byteint32_tIl numero di byte nel datagramma.
nome hostStringaUn nome dell’host remoto.
portaint32_tUn numero di porta remoto.

ReturnValue

Il numero di byte che vengono inviati.

Vedi anche

UdpClient::Send(System::ArrayPtr<uint8_t>, int32_t, System::SharedPtr<IPEndPoint>) method

Invia un datagramma UDP all’host all’endpoint remoto.

int32_t System::Net::Sockets::UdpClient::Send(System::ArrayPtr<uint8_t> dgram, int32_t bytes, System::SharedPtr<IPEndPoint> endPoint)
ParametroTipoDescrizione
dgramSystem::ArrayPtr<uint8_t>Un array di tipo Byte da inviare
byteint32_tIl numero di byte nel datagramma.
endPointSystem::SharedPtr<IPEndPoint>Un IPEndPoint che rappresenta l’host e la porta a cui inviare il datagramma.

ReturnValue

Il numero di byte che vengono inviati.

Vedi anche