Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-09 Thread Angus Robertson - Magenta Systems Ltd
> Can I send data back with the same udp socket that I set to listen? Yes. Look at my IP Log Streaming Component using ICS, it includes a demo for that can acts as TCP or UDP, client or server, bouncing packets around. http://www.magsys.co.uk/delphi/magics.asp Angus -- To unsubscribe or ch

Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-09 Thread brian
I think I figured out the problem. The first socket is sending out faster than the receiver is receiving and flushing the buffer. Another question, if I may; Can I send data back with the same udp socket that I set to listen? -- To unsubscribe or change your settings for TWSocket mailing list

Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-09 Thread Francois PIETTE
> sorry, actually it's this > > procedure TForm1.WSocket2DataAvailable(Sender: TObject; ErrCode: Word); > Var a: string; > begin > a:= WSocket2.ReceiveStr; > // if length(a) = 0 then Exit; > Inc(rec,1); > caption:= 'Received packets = '+inttostr(rec); > memo1.lines.add('Data: '+a); > end; You ha

Re: [twsocket] HttpCli.Get problem

2007-09-09 Thread brian
Use the DocEnd event -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-09 Thread brian
sorry, actually it's this procedure TForm1.WSocket2DataAvailable(Sender: TObject; ErrCode: Word); Var a: string; begin a:= WSocket2.ReceiveStr; // if length(a) = 0 then Exit; Inc(rec,1); caption:= 'Received packets = '+inttostr(rec); memo1.lines.add('Data: '+a); end; -- To unsubscribe or c

Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-09 Thread brian
This is the simple test code to receive the data procedure TForm1.WSocket1DataAvailable(Sender: TObject; ErrCode: Word); begin Inc(rec,1); caption:= 'Received packets = '+inttostr(rec); memo1.lines.add(WSocket2.ReceiveStr); end; > Are you calling the message pump from one of your event

[twsocket] HttpCli.Get problem

2007-09-09 Thread Lenif
Hi all, I use ICS for my application, I use Get method to get an url 2 problems: 1/ I need to get an url, when I launch .get method, the first time I get a result, the second time I use .get method, it doesn't respond, like responding from cache. strange. Hope you can understand 2/ I put this

Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-09 Thread Wilfried Mestdagh
Hello brian, > I thought the fragmented packets didn't happen with UDP though? that > boundaries were respected? Yes boundaries are respected with UDP. Don't make your packets too large. Look at internal buffer of TWSocket. > Why is the event triggered with empty data? I don't know. Using TCP j

Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-09 Thread Francois PIETTE
> I thought the fragmented packets didn't happen with UDP though? that > boundaries were respected? At the application level, there is no fragmented packet, datagram boundaries are respected. > Why is the event triggered with empty data? Are you calling the message pump from one of your event h