BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to receice UDP Packet ?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet)
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Mar 29, 2006 8:03 am    Post subject: How to receice UDP Packet ? Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.