 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Wed Mar 29, 2006 8:03 am Post subject: How to receice UDP Packet ? |
|
|
Hello. I would like to receive UDP packets which are send in TCP
network by some machine (I looked packeta by using Etherreal so I know
all essential informations). This machine send them from its IP to
255.255.255.255 . Is there exist the way in which I could receive them
? I'm using TidUDPServer and its events IdUDPServer1UDPRead which offer
record called ABinding. But when I write somethins like that :
procedure TForm1.IdUDPServer1UDPRead(Sender: TObject; AData: TBytes;
ABinding: TIdSocketHandle);
begin
label1.caption:=ABinding.PeerPort ;
label2.caption:=ABinding.PeerIP;
end;
and it is preceded by
IdUDPServer1.Active:=True;
IdUDPServer1.BroadCastEnabled:=True;
I don't receeive anything. In additional procedure onRead is not
working at all. What am I doing wrong ? I've written two applications
recently ( by using UDPServer and UDPClient) - one of them send UDP
packet whilst the other read it without too much difficulty - in
exactly the same way as do it now...
Peter W. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|