The problem with UDP is very urgent, etc.

xiaoxiao2021-03-05  19

I use the TidudpClient and TiDudpserver control for UDP transmission, I found that the two controls do not transmit the test source code under the 98 operating system is as follows:

Send an edit1 a Button an IDUDPCLIENT1 control

The code under Button is as follows:

Procedure TFORM1.BUTTON1CLICK (Sender: TOBJECT);

Begin

IdudpClient1.Broadcast (Edit1.Text, 1923);

END;

Accept a MEMO a IDUDPSERVER1 control

code show as below

Procedure TFORM1.IDUDPSERVER1UDPREAD (Sender: Tobject; Adata: TSTREAM;

ABINDING: TIDSOCKETHANDLE;

Var Rec: tstringstream;

A: String;

Begin

REC: = tstringstream.create ('');

Rec.copyfrom (adata, 0);

A: = Rec.datastring;

Memo1.Lines.Add (a);

END;

I think the code should have no problem, but the host property does not set two controls to set the port attribute to 1923 is right? Why can I transfer in 98 on the 2000???

Is it the problem of these two controls? If so, how can I solve it? The heroes brothers are not commented!!!

Symptom: There is also a test of 98 machines that can't access the 2000 operating system. There is no permission, two applets are installed in 2000, and there is no problem.

转载请注明原文地址:https://www.9cbs.com/read-38626.html

New Post(0)