Re: [twsocket] Silly UDP Question

2008-10-23 Thread Eric Fleming Bonilha
I just worked fine! Thanks a lot Francois! Éric - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, October 22, 2008 2:24 PM Subject: Re: [twsocket] Silly UDP Question >> But how do I fill th

Re: [twsocket] Silly UDP Question

2008-10-22 Thread Francois PIETTE
> But how do I fill the TSockAddr structure to pass to SendTo? Out of my head, not tested: FDest : TSockAddrIn; Data : AnsiString; MyPort : Integer; MyPort := 1234; // Port number FillChar(FDest, SizeOf(FDest), 0); FDest.sin_family := AF_INET; FDest.sin_port

Re: [twsocket] Silly UDP Question

2008-10-22 Thread Eric Fleming Bonilha
Thanks Francois! But how do I fill the TSockAddr structure to pass to SendTo? Eric - Original Message - From: "Francois Piette" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, October 22, 2008 4:25 AM Subject: Re: [twsocket] Silly UDP Question

Re: [twsocket] Silly UDP Question

2008-10-22 Thread Francois Piette
> I have a simple doubt regarding the TWSocket using UDP protocol. > Using the same component can I listen on one port and send data on another one? Yes, you can. Put the instance to listen mode on the port you want and then use SendTo to send datagram to the port you need. -- [EMAIL PROTECTED] Au

[twsocket] Silly UDP Question

2008-10-21 Thread Eric Fleming Bonilha
Hello All I have a simple doubt regarding the TWSocket using UDP protocol. Using the same component can I listen on one port and send data on another one? For Example: Listen on 3000 Send data to 192.168.10.10 on port 4000 All using the same object instance? Or I need to have two instances of