Einzelnen Beitrag anzeigen

UGrohne

Registriert seit: 12. Dez 2002
Ort: Pliezhausen
65 Beiträge
 
Delphi 7 Professional
 
#3

Re: UDP-Broadcasts und die Antwort darauf

  Alt 31. Okt 2005, 04:34
Zitat von ripper8472:
server empfangen, clients senden. das gilt fuer beide seiten.
kurz gesagt muessen beide seiten einen client und einen server haben.
vergiss nicht, udp ist ein verbindungsloses protokoll.
Aber im Falle der Indys haben doch beide Seiten sowohl Clients als auch Server die Möglichkeit Daten zu senden und zu empfangen. Oder wozu ist dann die Funktion send denn da?
Zitat von Indy-Hilfe:
Sends data to a remote computer system.

procedure Send(AHost: string; const APort: Integer; const AData: string);

Parameters

AHost: string

Address of the remote computer.

const APort: Integer

Port number on the remote computer.

const AData: string

Value to send to the remote computer.

Description

Send is a procedure used to send the data specified in AData to the remote computer system specified in AHost and APort. Send will resolve the address in AHost to a host name prior to sending AData to the remote system.

Send calls Binding.SendTo to transmit AData to the remote system. UDP does not guarantee delivery of data packets, so the values in AData may not arrive at the remote computer system.
Uwe
Lieber 3 Stunden Vorlesung, als gar kein Internetzugang
  Mit Zitat antworten Zitat