Re: [twsocket] Porting ICS MidWare to Delphi 2009

2008-08-27 Thread Arno Garrels
Maurizio Lotauro wrote:
 Scrive Arno Garrels [EMAIL PROTECTED]:
 
 Maurizio Lotauro wrote:
 
 What you described is more or less what I expected with that kind of
 changes in the compiler. I expected similar problems with the
 introduction of 64 bit.
 
 CG did a rather good job to make conversion of existing applications
 to Unicode as easy as possible.
 
 [...]
 
 Only to clarify :-)
 My was not a critic to CG. This kind of changes certainly will have
 some side effects, but, we say, it is the minor of the harm, or it is
 a necessary harm.

It depends very much on your code.
At least it 'forces' developers to write cleaner code ;-)
And I must admit that I appreciate this educational side effect :)
 
 
 Though
 this is a strong feature it also means that any code that used
 strings as binary buffer, or assumed 1 byte = 1 char did no longer
 work :( 
 And ICS assumed that rather frequently ;-)
 
 I think (and fear ;) that it is not the only one.

That is IMO the major one.

--
Arno


 I excepted an arrangement period, for Delphi and third party.
 
 Bye, Maurizio.
 
 
 This mail has been sent using Alpikom webmail system
 http://www.alpikom.it
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTPCli: Lose Socks settings in DataSocket on Close

2008-08-27 Thread Dan F
Regarding the type setting, you could derive your own component which keeps
a flag of the last type sent (binary or ascii) and before doing any store or
retrieve you could check if the binary property matched your flag.  If not,
send the TYPE command and update your flag.  This will avoid repeatedly
sending the command, but will mean you don't have to worry about the wrong
type being set, as long as the binary property is set as you want before an
operation.

Dan

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 On Behalf Of Anton Sviridov
 Sent: 25 August 2008 12:55
 To: twsocket@elists.org
 Subject: [twsocket] FTPCli: Lose Socks settings in DataSocket on Close
 
  Yes they do, since they only want to send it once when downloading
 1,000
  files or directories, not 1,000 times.
 
 I suppose it''s better to waste 0.5 sec and 10 bytes of traffic on
 setting type each time before download than constantly keep in mind,
 what type is set now and whether we have to change it or not. Of
 course, it''s just a my opinion.
 
 Another issue I noticed is a strange behavior with LocalStream. It
 supposed to be an external object, created outside FTPCli. So who has
 given the component a right to Destroy it in DestroyLocalStream?
 I''ll describe step by step.
 
 1) Create SomeStream in the main program
 2) Create FTPCli, all stuff
 3) Assign FTPCli.LocalStream to SomeStream
 4) Perform dir listing, parsing received info and so on
 
 -- until that FStreamFlag prevents LocalStream from destroying --
 
 5) Start downloading files, (!!!) Set LocalFileName. FStreamFlag
 changes to False, but LocalStream is still assigned!
 6) GetAsync destroys LocalStream, and, hence, our SomeStream.
 7) So we have SomeStream which points to nothing, and we are one step
 away from Access violation
 
 Maybe I misunderstood the logic of the process, then please tell me
 which way would be right.
 But as I see, this is a kind of logical bug. Looks like the best
 solution would be setting LocalStream to nil in SetLocalFileName
 
 --
 Best Regards, Anton
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Can ICS support IOCP?

2008-08-27 Thread Bruce Zhao
Hi, all:

  I want create a Socket Server,need IOCP,but the ICS look like don't
support ICOP, it's true?

-- 

Bruce Zhao
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Sender's IP in UDP

2008-08-27 Thread A.Shekar
Hi Angus,

Thanks and Regards
Shekar 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be