Re: [twsocket] Is this a bug or a missing feature in wsocket.pas?

2007-07-24 Thread Arno Garrels
> Abort() IMHO. Is this correct? No, since receiving this notification from winsock does not necessarily mean that all data has been received on the application level. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Fastream Technologies wrote: > Hello, >

[twsocket] TProxyInfo from User Made page

2007-07-27 Thread Arno Garrels
cnt := posini to Length(AString) do begin if AString[cnt] in SepChars then <= changed begin posend := cnt; Break; end; end; if (posend - posini) > 0 then ResList.Add(Trim(Copy(AString, posini, posend - posini))); posini := posend + 1;

Re: [twsocket] TProxyInfo from User Made page

2007-07-27 Thread Arno Garrels
Maurizio Lotauro wrote: > Scrive Arno Garrels <[EMAIL PROTECTED]>: > >> Hello Maurizio, > > Hello Arno, > >> TProxyInfo does not parse the proxy-strings correctly >> since here in W2K entries are separated by a space, I changed >> below function to a

Re: [twsocket] TWSocket for .Net and C#?

2007-08-06 Thread Arno Garrels
Fredrik Larsson wrote: > I don't see it. I guess you found how to delete it yourself. > > The link is > http://wiki.overbyte.be/wiki/index.php/FAQ.Microsoft.NET_framework I saw it a couple of hours back, now the above link doesn't work for me (There is currently no text in

Re: [twsocket] TProxyInfo from User Made page

2007-08-13 Thread Arno Garrels
Maurizio Lotauro wrote: > Scrive Arno Garrels <[EMAIL PROTECTED]>: > > Hello Arno, > > I finally got some time to examine the problem :-) Thanks. > Now I'll change the code. Do you mind I'll send you a copy to test > it? :-) OK, drop me a private mail.

Re: [twsocket] TProxyInfo from User Made page

2007-08-13 Thread Arno Garrels
Maurizio Lotauro wrote: > Scrive Arno Garrels <[EMAIL PROTECTED]>: > >> Maurizio Lotauro wrote: >>> Scrive Arno Garrels <[EMAIL PROTECTED]>: > > [...] > >>> Revising the code I noticed this in the API description. For the >>> I

Re: [twsocket] TProxyInfo from User Made page

2007-08-14 Thread Arno Garrels
Maurizio Lotauro wrote: > No. I redo the test based on the sample found in the following link: > > http://msdn2.microsoft.com/en-us/library/aa383910.aspx As you already wrote, in the sample they pass a pointer to an allocated buffer that is never been used :-) Seems to be an incorrect example.

Re: [twsocket] FTP server no timeout

2007-08-16 Thread Arno Garrels
rom a timer. I won't use keep alives in the FTP server but a client timeout triggered by a single timer. Lengthy transfers on the data channel should not trigger a timeout of the control channel, like many FTP servers do. Arno Garrels -- To unsubscribe or change your settings for TWSocket mail

Re: [twsocket] What would cause an ICS-threaded server to run into 100%CPU usage?

2007-08-17 Thread Arno Garrels
Fastream Technologies wrote: > Yes, this is the question. It only happens at customer site and I > cannot do remote debugging since the connection is not that fast. Under heavy load ? -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or chang

Re: [twsocket] What would cause an ICS-threaded servertoruninto100%CPU usage?

2007-08-17 Thread Arno Garrels
you looked at virtual memory use in taskmanager yet ? Or may be some infinite loop somewhere in your code ? -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > Regards, > > SZ > > - Original Message - > From: "Fredrik Larsson&q

Re: [twsocket] Help with re-install simply WSocket?

2007-08-19 Thread Arno Garrels
ether that would work the same) or define NO_DEBUG_LOG in the project options to exclude the IcsLogger component. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/m

Re: [twsocket] OT: Ping: Arno Garrels

2007-08-20 Thread Arno Garrels
Fastream Technologies wrote: > Hello Arno, > > Are you getting the emails I send? Please let me know from this email. I'm currently very busy thus cannot answer private support requests. Please ask those questions in an appropriate newsgroups or mailing list. Thanks, -- Arno Ga

Re: [twsocket] Fw: Can one get the home folder of an user fromActiveDirectory?

2007-08-20 Thread Arno Garrels
me directories. Have a look at the GetSpecialFolderLocation() API, if that is what you are after. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocke

Re: [twsocket] Fw: Can one get the home folder of an userfromActiveDirectory?

2007-08-20 Thread Arno Garrels
Correction I meant the SHGetSpecialFolderLocation() API. Arno Garrels wrote: > Fastream Technologies wrote: >>> Which home folder should each FTP user show? In the demo they all >>> show the same folder but that's not a real-life scenario! > > Although this is

Re: [twsocket] Fw: Can one get the home folder ofanuserfromActiveDirectory?

2007-08-21 Thread Arno Garrels
Fastream Technologies wrote: > I do not think you see my point at all... I do NOT want to get the > home folder of the service account user's. I need to input the > username from the USER command in TO the ActiveDirectory. What means "input the user name in To the ActiveD

Re: [twsocket] Fw: Can one get the homefolderofanuserfromActiveDirectory?

2007-08-21 Thread Arno Garrels
p functions among the Network Management Functions: http://msdn2.microsoft.com/en-us/library/aa370675.aspx -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > Clear? > > Best Regards, > > Sz > > - Original Message - > From: &quo

Re: [twsocket] ThreadDEtach with THttpConnection problem

2007-08-22 Thread Arno Garrels
or other components of that thread) those unregistered messages won't be touched by the component but handled by DefWindowProc, so no problem. If the hidden window has been destroyed Windows flushes the thread message queue so GetMessage() should never see a message for a non-existing window

Re: [twsocket] ThreadDEtach with THttpConnection problem

2007-08-22 Thread Arno Garrels
age pump may not work correctly, make sure that you use this template: while GetMessage(Msg, 0, 0, 0) do begin if (Msg.hwnd = 0) then //*** begin **handle thread messages here (those posted by PostThreadMessage)** end else begin TranslateMessage(Msg);

Re: [twsocket] ThreadDEtach with THttpConnection problem

2007-08-22 Thread Arno Garrels
ry reliable in multi-threaded applications it happens that it stops at one line whilst the error is at a different location. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/ma

Re: [twsocket] ThreadDEtach with THttpConnection problem

2007-08-22 Thread Arno Garrels
that it's called after SessionClosed, though the message pump may be called from InternalClose, however that should not hurt at all. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > On 8/22/07, Arno Garrels <[EMAIL PROTECTED]> wrote: >> >>

Re: [twsocket] Is this design correct for THttpConnection/THttpClireturn to pool?

2007-08-27 Thread Arno Garrels
ded to pump messages since THttpCli.Abort may not block (RequestDone may be triggered delayed by a posted message), which I think should/can be easily changed to _always behave blocking. THttpCli.Abort also may call FCtrlSocket.Close. I don't understand why it doesn't always call FC

Re: [twsocket] Is there any code example for sending emails throughGMail with ICS?

2007-08-31 Thread Arno Garrels
This may be a stupid question, isn't GMAIL = Google Mail and doesn't it allow sending thru their webmail client only? Fastream Technologies wrote: > TIA, > > SZ -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit

Re: [twsocket] Is there any code example for sendingemailsthroughGMail with ICS?

2007-08-31 Thread Arno Garrels
Fastream Technologies wrote: > No, I use their POP/SMTP service with Windows Mail. It requires SSL. Then try ICS-SSL and the TSslSmtpCli component, it supports the StartTls command. Arno Garrels > > Best Regards, > > Gorkem Ates > Fastream Technologies > Software IQ:

Re: [twsocket] Is there any code exampleforsendingemailsthroughGMail with ICS?

2007-08-31 Thread Arno Garrels
ably very easy to add to the SMTP client as well. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > Even so, it's very useful to have a POP/SMTP service you can use > reliably from any PC, anywhere, with a simple client on a USB stick > for example. &

Re: [twsocket] Question regarding ActiveDirectory in FTP for Arno

2007-08-31 Thread Arno Garrels
is but it's not open source. FileZilla has no > AD support. I doubt that SurgeFTP realy writes permissions on a Windows box. Setting NTFS rights is no problem _if_ somebody knows how to translate the UNIX access mask into a Windows mask? -- Arno Garrels [TeamICS] http://www.overbyte.

Re: [twsocket] Question regarding ActiveDirectory in FTP for Arno

2007-09-01 Thread Arno Garrels
Mask() AccessCheck() Anyway, I don't know how to translate the resulting mask to unix format, also there's no reliable way to get the effective rights of users without having the user access token, even XP shows sometimes nonsense effektive rights of not logged on users. -- Arno G

Re: [twsocket] Question regarding ActiveDirectory in FTP for Arno

2007-09-01 Thread Arno Garrels
Arno Garrels wrote: > I use these Windows API functions: > GetNamedSecurityInfo() > MapGenericMask() > AccessCheck() > > Anyway, I don't know how to translate the resulting mask to unix > format, also there's no reliable way to get the effective rights of > us

Re: [twsocket] Question regarding ActiveDirectory in FTP for Arno

2007-09-01 Thread Arno Garrels
ata.de/misc/delphi/ChkAcc.zip But hav not checked BCB compatibility, though I think it should work with BCB as well. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > Regards, > > SZ > > - Original Message ----- > From: "Arno Garrels

[twsocket] RAD Studio 2007 seems to out

2007-09-05 Thread Arno Garrels
http://www.codegear.com -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] Ftp-file corruption check

2007-09-16 Thread Arno Garrels
x27;s in both V5 and V6 -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] FTP Server demo fails

2007-09-19 Thread Arno Garrels
Francois PIETTE wrote: >> Any ideas what's causing this? > > No idea. I'm also not able to reproduce this in V6 D2007, strange. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > >> I'm unable to trace into the Pascal source for

Re: [twsocket] FTP Server demo fails

2007-09-20 Thread Arno Garrels
e the events; OnValid called from the context of the main > process or a background thread? By default ICS doesn't create threads, see above. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > Many thanks. > > David > > > &

Re: [twsocket] FTP Server demo fails

2007-09-20 Thread Arno Garrels
; blocking the FTP Server. Correct, that won't work of course. In your ThreadProc create the component and call GetMessage(), TranslateMessage() and DispatchMessage in a loop. Anything else can either be done from the ICS events, or from handlers of custom messages posted to Thread, i.e. to s

Re: [twsocket] FTP Server demo fails

2007-09-20 Thread Arno Garrels
he requirement for a NOFORMS message pump at all? NOFORMS forces to not include Forms.pas into ICS. It doesn't change the fact that a message pump must exist. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > On 20/09/2007, Francois Piette <[EMAIL PROTECT

Re: [twsocket] FTP Server - detecting when a new file has been uploaded

2007-09-20 Thread Arno Garrels
ht places, however the logic to detect new uploads still has to be invented. Note that both events will fire also when partitial uploads start or finish. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing

Re: [twsocket] ICS Server raises external exception c000001d

2007-09-24 Thread Arno Garrels
Fastream Technologies wrote: > What is a "first chance exception" anyway? Google is your friend, anyway: http://www.google.com/search?q=What+is+a+%22first+chance+exception%22 -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > Regards, > &g

Re: [twsocket] 100% CPU usage if data is not processed immediately

2007-09-26 Thread Arno Garrels
is proposal? That would slow down performance when you use the component as designed. When the application is idle it should read incomming data immediately. There is no reason to wait until a certain amount of data is pending to be read from winsock. -- Arno Garrels [TeamICS] http://www.

Re: [twsocket] 100% CPU usage if data is not processed immediately

2007-09-26 Thread Arno Garrels
h as the first byte. Or write received data to a stream if you like. Source code of the high level ICS components demonstrate how to do that in detail. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list pl

Re: [twsocket] newb using TWSocket for the first time

2007-09-26 Thread Arno Garrels
ll when messages are pumped in the event handler. > Would another thread calling processmessages > give the same problems? No, ProcessMessages retrieves messages from the thread message queue and dispatch them to the default window procedure. -- Arno Garrels > > Thanks. &g

Re: [twsocket] Wiki

2007-09-27 Thread Arno Garrels
Mike Sutton wrote: > I thing a prominent link may help user, both new and > existing. That most likely would help to make the project moving forward. I just added some short-descriptions to the TSmtpCli main page. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamic

Re: [twsocket] TWSocketThrdServer graceful shutdown

2007-09-28 Thread Arno Garrels
st stops listening, doesn't disconnect connected clients, if that's what you mean. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsock

Re: [twsocket] TWSocketThrdServer graceful shutdown

2007-09-28 Thread Arno Garrels
e socket, however data still pending in winsock buffer will be sent nevertheless. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > > >> --- Original Message --- >>> From: Wilfried > Mestdagh[mailto:[EMAIL PROTECTED] &

Re: [twsocket] TWSocketThrdServer graceful shutdown

2007-09-28 Thread Arno Garrels
Wilfried Mestdagh wrote: > Hello Arno, > >> Most likely Wilfried is faster again ;-) > > most of the time you are faster :) Isn't this list great? Where else do you get faster support for free software? -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overby

Re: [twsocket] Bug in OverbyteICSHttpProt.pas

2007-09-30 Thread Arno Garrels
any other distributions. The only strange thing I do not understand is that all icons are missing in the Tool-Palette of BCB2007, anybody any idea? -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > THANKS. > > Gorkem > > > On 9/30/07, Fr

Re: [twsocket] Bug in OverbyteICSHttpProt.pas

2007-09-30 Thread Arno Garrels
Arno Garrels wrote: > Fastream Technologies wrote: > Any ideas?? Sorry, my green light was given too early and you are right, there are indeed a few small bugs in procedure THttpCli.GetBodyLineNext when UseContentCoding is not defined in the parts dealing with chunked encoding. Francois c

Re: [twsocket] Another BCB2007 compatibility problem (of demos)

2007-10-01 Thread Arno Garrels
download the partner DVD just to get the latest ICS distribution. Everybody expects that the same, or even a newer version is available on your website. If that's not case please change that. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or

Re: [twsocket] New ICS-V6 beta available - updated for RAD Studio 2007

2007-10-03 Thread Arno Garrels
tpProt.pas is used MimeUtils.pas MUST be exchanged due to a bug in DoFileEncQuotedPrintable. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Francois PIETTE wrote: > There is a new ICS-V6 beta available. Updated for RAD Studio 2007. > Still OK for Delphi 7.

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailable triggeredwhen Closed.

2007-10-03 Thread Arno Garrels
Olivier Sannier wrote: > Isn't it what CloseDelayed is meant for? CloseDelayed won't reenter the event, however to ensure that last data packets are received properly before the socket is closed call ShutDown() for a gracefull close in DataSent event handler. -- Arno Garrels [

Re: [twsocket] TWSocketThrdServer - Bogus OnDataAvailabletriggeredwhen Closed.

2007-10-03 Thread Arno Garrels
Socket.InternalClose the message pump is called. Anyway calling Send() immediately followed be CloseDelay will most likely (not always) lead to truncated data on the client side. Best practice when calling ShutDown(1) from OnDataSent is starting a timer to detect timeouts when the client should

Re: [twsocket] Using SourceForge for ICS ?

2007-10-03 Thread Arno Garrels
Maurizio Lotauro wrote: > I see that jcl has switched from CVS to SVN, so probably it will be > better to choice SVN. Yes, and TortoiseSVn looks like a very cool and powerfull tool on the first glance! -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html

Re: [twsocket] TWSocketThrdServer stuck in destructor loopwhenkilling threads

2007-10-04 Thread Arno Garrels
; Begin Try FSocketSrv := TWSocketThrdServer.Create(Nil); FSocketSrv.Listen(); FSocketSrv.MessageLoop; Finally // Add FSocketSrv.Free; PostMessage(AppHwnd, WM_SERVERTHREAD_WILL_TERMINATE_SOON, ErrorCode, RestartMe); End; End; -- Arno Garrels

Re: [twsocket] Using SourceForge for ICS ?

2007-10-07 Thread Arno Garrels
les > of the TWSocket class hierarchy, which if changed, may affect all > other units. That way you make sure that, say, Francois and Arno > will not be changing the same things at the same time. Isn't it safe to use the Copy-Modify-Merge solution, described in the online-help ? -

Re: [twsocket] Using SourceForge for ICS ?

2007-10-08 Thread Arno Garrels
DZ-Jay wrote: > On Oct 7, 2007, at 14:57, Arno Garrels wrote: > >> Isn't it safe to use the Copy-Modify-Merge solution, described in the >> online-help ? > > Yes, it is very safe. Now that I checked how to merge particular changes made in branches to the main so

Re: [twsocket] Using SourceForge for ICS ?

2007-10-08 Thread Arno Garrels
is most likely not required. Also revision numbers are incremented for the entire project/repository. But I could very well live with both in the same repository as well, locally I also treat them as two different projects. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.ht

Re: [twsocket] Using SourceForge for ICS ?

2007-10-08 Thread Arno Garrels
s to make development easier for a workgroup isn't it? ICS can only benefit from such a concept. That must not mean to move the source to SourceForge, all we need is a server that runs SVN, 24 hours a day, ideally under your control. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/ove

Re: [twsocket] Using SourceForge for ICS ?

2007-10-08 Thread Arno Garrels
Francois PIETTE wrote: >> The goal is to make development easier for a workgroup isn't it? > > Yes, it is. > >> ICS can only benefit from such a concept. That must not mean >> to move the source to SourceForge, all we need is a server that >> runs SVN, 24 hours a day, ideally under your control.

Re: [twsocket] TWSocketThrdServer friendly notice whendisconnecting.

2007-10-11 Thread Arno Garrels
ient were distroyed by Srv.Free, which will raise an > exception that I would like to avoid if possible. So, what I did was > not call ShutDown(1), and expect the shutdown to occur when > destroying the Srv, like this: > > Try > Srv.Shutdown(0); // make sure we do

Re: [twsocket] TWSocketThrdServer friendly notice whendisconnecting.

2007-10-11 Thread Arno Garrels
DZ-Jay wrote: > On Oct 11, 2007, at 06:47, Arno Garrels wrote: > >> Iterating thru Srv.Clients is not the way to go!! It is not >> thread-save and will most likely throw strange AVs. Instead >> iterate thru the thread-list and post a custom message to each >> thread,

Re: [twsocket] TWSocketThrdServer friendly notice whendisconnecting.

2007-10-11 Thread Arno Garrels
Btw: Should read: TMessageEvent = procedure(Sender: TObject; var Msg: TMessage; var Handled: Boolean) of object; -- 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] TWSocketThrdServer friendly notice whendisconnecting.

2007-10-11 Thread Arno Garrels
think so. You only must ensure that lengthy, blocking tasks are moved into worker threads in order to not slow down response time to all other clients too much or not to block subsequent connection attempts. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > >

Re: [twsocket] TWSocketThrdServer friendly notice whendisconnecting.

2007-10-11 Thread Arno Garrels
s finished their concurrent download. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > Best Regards, > > SZ > > > On 10/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> --- QUOTE: SZ >> If you do not want the a

Re: [twsocket] Bug (yet another?) in THttpCli

2007-10-11 Thread Arno Garrels
Fastream Technologies wrote: > if(method == "GET") > bufferClient->GetASync(); // here gives "Busy" error, WHY? ISN'T > THIS THE PROPER WAY TO USE THE COMPONENT?? I cannot reproduce this? Any special environment required? -- Arno Garrels [TeamICS

Re: [twsocket] Bug (yet another?) in THttpCli

2007-10-12 Thread Arno Garrels
l. > Thanks, > > SZ > > > On 10/11/07, Arno Garrels <[EMAIL PROTECTED]> wrote: >> >> Fastream Technologies wrote: >>> if(method == "GET") >>> bufferClient->GetASync(); // here gives "Busy" error, WHY? ISN'T >&

Re: [twsocket] TWSocketThrdServer friendly notice whendisconnecting.

2007-10-14 Thread Arno Garrels
many other bottlenecks that could benefit from MT. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > Regards, > > SZ > > > On 10/11/07, Arno Garrels <[EMAIL PROTECTED]> wrote: >> >> Fastream Technologies wrote: >>&g

Re: [twsocket] ICS FTP Client list command result

2007-10-15 Thread Arno Garrels
ct other than "the list > is placed in a local file". Where? Check the FtpsTst demo, there's a property LocalFileName search for string "TEMP_FILE_NAME". -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > Thanks, > > Ian T

Re: [twsocket] TWSocketThrdServer

2007-10-15 Thread Arno Garrels
orks event-driven, means that most methods return immediately before they are finished, later when they finished another event is triggered where you take further action. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > Thanks for y

[twsocket] A TFtpCli application performance question

2007-10-15 Thread Arno Garrels
Hi, I've written a FTP-uploader without taking much care of speed issues. It uploads 17000 files with total size of 830 MB in 56 mins in my 100 MBit/s LAN (logging each FTP-command). What do you think, is that: a) Poor b) OK c) Fast I currently don't have any idea. -- Arno Garrel

Re: [twsocket] A TFtpCli application performance question

2007-10-15 Thread Arno Garrels
4 large file and use 4 instances of > your program ? That would most likely speed up things, currently CPU use is only at 0-15% at the client side. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > -- > [EMAIL PROTECTED] > The author of the freewar

Re: [twsocket] A TFtpCli application performance question

2007-10-16 Thread Arno Garrels
things. Use "netstat -e" to > see you netwrok card statistics. rejected packets and errors should > be zero. Fortunately both are zero. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > -- > [EMAIL PROTECTED] > Author of ICS (Internet

Re: [twsocket] A TFtpCli application performance question

2007-10-16 Thread Arno Garrels
Tobias Rapp wrote: >>> Actually, this is a lot of small files (48KB mean size). >>> Speed is roughly 2 Mbps which is low for a 100 Mbps. >> >> Oha, as I read between the lines, I have to rework my code :( > > Also do not forget to play with the BufSize and SocketSndBufSize > settings on tWSocket.

Re: [twsocket] how 2 set up a root folder fot FTP server

2007-10-17 Thread Arno Garrels
options ftpsHidePhysicalPath and ftpHidePhysicalPath and also fixes some security issues related to directory changes. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.

Re: [twsocket] ICS v6 migration considerations

2007-10-17 Thread Arno Garrels
r from users of ICS v6 and whether they find > it stable in their production software. I think it can be considered as stable as V5, brand new features however may still be beta of course. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > Thanks, > dZ. &

Re: [twsocket] ICS v6 migration considerations

2007-10-17 Thread Arno Garrels
DZ-Jay wrote: > On Oct 17, 2007, at 06:52, Arno Garrels wrote: >> function TFoo.MsgHandlersCount : Integer; >> begin >> Result := 1 + inherited MsgHandlersCount; >> end; >> >> procedure TFoo.AllocateMsgHandlers; >> begin >>

Re: [twsocket] FTP Client in a separate thread

2007-10-17 Thread Arno Garrels
How is option ftpWaitUsingSleep set? Can you try to change this to either True or False? I've no experience with the sync-methods since I'm using async methods, in worker threads successfully as well. If that doesn't change anything you could try to lower thread's priority, just an id

Re: [twsocket] FTP Client in a separate thread

2007-10-17 Thread Arno Garrels
Tobias Giesen wrote: > Everything happens in the thread, Just to clear this up, you have to create the TFtpClient instance method Execute of TThread. Otherwise it won't realy run in the thread. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubs

Re: [twsocket] TWSocketServer Client.Shutdown(1) does not destroy it

2007-10-17 Thread Arno Garrels
Begin With (Sender As TMyClient) Do Begin If (SomethingBadHappened) Then Begin OnDataSent := ClientDataSent; SendLine('Error!'); End; End; End; procedure TMyServer.ClientDataSent(Sender: TObject; ErrCode: Word); begin TWSocket(Sender).OnDataSent := nil;

Re: [twsocket] FTP Client in a separate thread

2007-10-18 Thread Arno Garrels
t as > soon as I use FTP or HTTP or even SSH with any library (ICS, Indy, > SecureBlackBox, Clever Internet Suite) the main process stalls. So are you saying that it's not a problem related to ICS only? Do you see similar (strange delays or high CPU use) with IE or any other intern

Re: [twsocket] TWSocketServer Client.Shutdown(1) does not destroy it

2007-10-18 Thread Arno Garrels
DZ-Jay wrote: > On Oct 18, 2007, at 02:35, Arno Garrels wrote: > >> Your code does not guarantee that all data will be sent >> to the client. Make sure that ShutDown() is called after >> all data has been delivered to winsock. Something like >> that: > > Tha

Re: [twsocket] Keeping a Responsive UI during THTTPCli Download

2007-11-12 Thread Arno Garrels
essMessages from a timer event, timer messages are not queued as well. Be aware that calling ProcessMessages from any ICS event handler can lead to strange and buggy component behaviour. Never ever call the message pump from component's event handlers, except you know very well what you are

Re: [twsocket] [OT] Writing Vista applications using Delphi

2007-11-13 Thread Arno Garrels
ducts yet. Should be no problem to install 2006 on Vista as well. Either turn off UAC or run the BDS-Process as Admin, also turn off hardware DEP. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/

Re: [twsocket] One Time Passwords

2007-11-14 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: > I've got opt-md5 working in the ICS FTP client (and shortly the FTP > server), but opt-md4 and opt-sha1 are not generating the expected > results. Just a little test with MD4, Count 0 gave me the expected result: MD4Init(Md4Ctx); Md4Update(Md4Ct

Re: [twsocket] Need help with Active Directory user path permissions

2007-11-15 Thread Arno Garrels
l folders. I hope you get what I mean and help. AFAIK, that's impossible. I think you have to maintain a custom list of each user's folder mapping. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mail

Re: [twsocket] Need help with Active Directory user path permissions

2007-11-15 Thread Arno Garrels
When the server admin sets up the folders of an account you store this configuration, including the mapping real path <=> virtual path. > > Regards, > > SZ > > > On 11/15/07, Arno Garrels <[EMAIL PROTECTED]> wrote: >> >> Fastream Technologies

Re: [twsocket] Receive vs ReceiveStr, Speed vs Complexity

2007-11-17 Thread Arno Garrels
using ReceiveStr. > > Is the speed improvement potential worth the added complexity to > covert my app from using SendStr and ReceiveStr to Send and Receive? Francois already answered that. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > If ye

Re: [twsocket] FTP Failure

2007-11-24 Thread Arno Garrels
router isn't smart enough to change this to the current public IP. I guess the user must either buy a smarter router or try passive mode (if the server allows it). -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSoc

Re: [twsocket] I need some help understanding TWsocket states

2007-11-26 Thread Arno Garrels
Hello Pete, The states are not that important, but the events are. Check this link: http://wiki.overbyte.be/wiki/index.php/Asynchronous_Paradigm and ask your questions here if it doesn't answer your question. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html

Re: [twsocket] Delphi 4

2007-11-27 Thread Arno Garrels
troppo gigio wrote: > There will be any SSL for delphi 4 ?? ICS-SSL-V5 requires Delphi 5 and ICS-SSL-V6 requires Delphi 7. However most likely it were not much work to make ICS-SSL-V5 compile with Delphi 4 as well. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.h

Re: [twsocket] Fwd: Re: parameter error in twsocket w/d2

2007-11-27 Thread Arno Garrels
n; var .. {$IFDEF DELPHI3} BytesReturned : DWORD; {$ELSE} BytesReturned : Cardinal; {$ENDIF} .. To: procedure TCustomWSocket.SetKeepAliveOption; var .. BytesReturned : DWORD; .. Does that help? -- Arno Garrels [EMAIL PROTECTED] wrote: > Quoting Francois Piette <[EMAIL PR

Re: [twsocket] Fwd: Re: parameter error in twsocket w/d2

2007-11-28 Thread Arno Garrels
"{$IFDEF DELPHI2}" it won't compile in Delphi 3 anymore, I think you should simply remove the conditional. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > Quoting Arno Garrels <[EMAIL PROTECTED]>: > >>> the unit. Sti

Re: [twsocket] turbo delphi.

2007-11-28 Thread Arno Garrels
Robert W Harris wrote: > hey just woundering. > will ICS work with turbo delphi? Yes, the Turbos basically are BDS2006 with just the Delphi personality, however the free Version doesn't allow components to be installed in the IDE, instead you have to create the ICS-Objects at runtim

Re: [twsocket] TWSocketServer and backlog

2007-11-28 Thread Arno Garrels
est is with TcpSrv Demo, with logging to the memo enabled I get the first error 10061 after 100-200 connects (10ms intervals). Turning off logging to memo establishes several thousand connections without any error easily. -- Arno Garrels > > Paul > > > - Original Messag

Re: [twsocket] I need some help understanding TWsocket states

2007-11-28 Thread Arno Garrels
t. > OnSessionAvailable doesn't seem to get called ever. OnDataSent is usefull to send large data in smaller chunks. It's always called when the internal send buffer became empty. -- Arno Garrels -- 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] I need some help understanding TWsocket states

2007-11-28 Thread Arno Garrels
kets, as I read the post it deals with a client (connecting party). -- Arno Garrels > >Also, what happens when you try to send a second > time (or does it even try)? Do you get a "Component > already connected" error or something like that? > >If your burst m

Re: [twsocket] upgrading

2007-11-28 Thread Arno Garrels
[EMAIL PROTECTED] wrote: >> Update your Delphi, preferably to the current version (Delphi 2007). > .. and what kind of nightmare can I expect migrating over 6mb of d2 > code to d7? The longer you wait upgrading to a current version the nightmare will last longer ;-) --

Re: [twsocket] I need some help understanding TWsocket states

2007-11-28 Thread Arno Garrels
[EMAIL PROTECTED] wrote: > Its nice to have a mailing list where you can get > many people addressing the same questions :) Agreed, and don't forget the free sources. Do you realy need more? -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list

Re: [twsocket] ASyncReceive and wsoNoReceiveLoop

2007-11-29 Thread Arno Garrels
D_Read for > every block of data, then ASyncReceive and any DataAvailable events > would be called multiple times. There is no relationship to the amount of data, there should be one FD_Read message as long as data is available in winsock's receive buffer. Looping in ASyncReceive is required befo

Re: [twsocket] TWSocketServer and backlog

2007-11-29 Thread Arno Garrels
the same as with (a). The goal is to accept clients as fast as possible, once they are connected it won't hurt to let them wait some milliseconds. Before you rewrite your application I suggest you code some test apps. with different designs and compare their performance. -- Arno Garrels

Re: [twsocket] TWSocketServer and backlog

2007-11-29 Thread Arno Garrels
[EMAIL PROTECTED] wrote: >> --- Original Message --- >>> From : Arno Garrels[mailto:[EMAIL PROTECTED] >> >>> You can exchange data between threads the most > easy is by posting a >>> message where a pointer to the data is in WParam > argumen

Re: [twsocket] Help with SmtpClient

2007-11-30 Thread Arno Garrels
ee why Mail() does not > work. > > is this a FAQ ? Looks like that ;-) You get this error when you do not code event-driven. Check this link: http://wiki.overbyte.be/wiki/index.php/Asynchronous_Paradigm to get started. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.

Re: [twsocket] Exceptions ignored in OnDataAvailable method

2007-12-01 Thread Arno Garrels
> stop the receive loop. Have you got any exception that was raised from TWSocket internaly? I mean outside of your handler? -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket

<    1   2   3   4   5   6   7   8   9   10   >