Re: [twsocket] UDP Address

2008-10-17 Thread Maurizio Lotauro
Scrive Wilfried Mestdagh <[EMAIL PROTECTED]>: > Hello Martin, > > Here is a small example: > > procedure TFoo.FUDPDataAvailable(Sender: TObject; Error: word); > var >Buffer: array [0..1023] of char; >Len: integer; >Src: TSockAddrIn; >SrcLen: integer; > begin >SrcLen := SizeOf

Re: [twsocket] UDP Address

2008-10-16 Thread Xealot
Thank you SO much. I really appreciate it. - Martin E. On Fri, Oct 17, 2008 at 7:37 AM, Wilfried Mestdagh <[EMAIL PROTECTED]>wrote: > Hello Martin, > > Here is a small example: > > procedure TFoo.FUDPDataAvailable(Sender: TObject; Error: word); > var > Buffer: array [0..1023] of char; > Len

Re: [twsocket] UDP Address

2008-10-16 Thread Wilfried Mestdagh
Hello Martin, Here is a small example: procedure TFoo.FUDPDataAvailable(Sender: TObject; Error: word); var Buffer: array [0..1023] of char; Len: integer; Src: TSockAddrIn; SrcLen: integer; begin SrcLen := SizeOf(Src); Len := TWSocket(Sender).ReceiveFrom(@Buffer, SizeOf(Buffer),

Re: [twsocket] UDP Address

2008-10-16 Thread Xealot
: "Xealot" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Friday, October 17, 2008 05:01 > Subject: Re: [twsocket] UDP Address > > > > Thank you for replying, > > > > PeerAddr raises a SocketException > > > > 'Error 1005

Re: [twsocket] UDP Address

2008-10-16 Thread brian
Maybe GetPeerAddr? - Original Message - From: "Xealot" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Friday, October 17, 2008 05:01 Subject: Re: [twsocket] UDP Address > Thank you for replying, > > PeerAddr raises a SocketException > > &#

Re: [twsocket] UDP Address

2008-10-16 Thread Xealot
lient port On Fri, Oct 17, 2008 at 4:54 AM, brian <[EMAIL PROTECTED]> wrote: > Have you checked PeerAddr? > > - Original Message - > From: "Xealot" <[EMAIL PROTECTED]> > To: > Sent: Friday, October 17, 2008 04:47 > Subject: [twsocket] UDP Addre

Re: [twsocket] UDP Address

2008-10-16 Thread brian
Have you checked PeerAddr? - Original Message - From: "Xealot" <[EMAIL PROTECTED]> To: Sent: Friday, October 17, 2008 04:47 Subject: [twsocket] UDP Address > Hello! > > I would like to know if its possible to get the address that a UDP packet > co

[twsocket] UDP Address

2008-10-16 Thread Xealot
Hello! I would like to know if its possible to get the address that a UDP packet comes from. I am making an application that will send multiple packets to different hosts using SendTo and I will be receiving replies from them. I have no power to change the protocol, so I need to know if its poss