Re: [twsocket] httpcli v6 "bad request"

2007-04-20 Thread Francois PIETTE
> I do not agree that this is a relocation-specific > issue, and if we want the component to mimic the > expected behaviour of standard browsers, it needs to > automatically encode all URLs when composing the > request, at the latest point when the location > address has been "commited" immutably.

Re: [twsocket] 501 CannotRETR.Error-SocketwithicsFtpServ(V6forDelphi7)

2007-04-20 Thread Francois PIETTE
Sent: Wednesday, April 18, 2007 7:17 PM >>>>> Subject: Re: [twsocket] 501 Cannot RETR. Error - Socket >>>>> withicsFtpServ(V6forDelphi7) >>>>> >>>>> >>>>>> Patrick Schmidt - STEP Software GmbH wrote: >>>

Re: [twsocket] 501CannotRETR.Error-SocketwithicsFtpServ(V6forDelphi7)

2007-04-20 Thread Francois PIETTE
>> The server can't be sure the file has been sent properly before the >> connection is properly closed. > That's true, however he knows that he sent all, he cannot know > whether it all received at the peer. He knows data is correctly received by the peer because of the graceful close sequence

Re: [twsocket] httpcli v6 "bad request"

2007-04-21 Thread Francois PIETTE
> Francois, > Then there are situations that your previous > argument will fail: Consider an application using > HttpCli that does not automatically encode URLs in > the URL property. Users will complain that "If I > enter in IE it works, but your > software is broken!". If your response is "

Re: [twsocket] Httpcli cookie

2007-04-21 Thread Francois PIETTE
Normally, cookies are managed by the application. It is not always that simple because of path and expiration. You can have a lot of cookies grabbed from one or even several URL while redirecting. So you should really write some manager code to have cookies somewhat persistant. That's why the ev

Re: [twsocket] Httpcli cookie

2007-04-21 Thread Francois PIETTE
>> Note that you can derive your own HTTP component from ICS component and >> add >> the storage or manager you like. In my opinion, it is better to write a >> separate class for cookie management and link that class to your HTTP >> component. A cookie manager component would be a nice addon to ICS

Re: [twsocket] Httpcli cookie

2007-04-21 Thread Francois PIETTE
>>> How would you add to the current httpcli (v6) component a cookie-manager >>> in a non code breaking manner as the current cookie is defined as a >>> string? >> Write a TCookieManager component. >> Create a new property CookieManager in the HTTP component. >> At design time, link the cookie ma

Re: [twsocket] httpcli v6 "bad request"

2007-04-21 Thread Francois PIETTE
ect time. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Saturday, April 21, 2007 1:35 PM

Re: [twsocket] Httpcli cookie

2007-04-21 Thread Francois PIETTE
> Your funtions are based on the assumption that there is a manager per > httpcli, but maybe beter to have a manager that can handle multiple > httpcli? Indeed. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubsc

Re: [twsocket] httpcli v6 "bad request"

2007-04-22 Thread Francois PIETTE
> Or we simply make property LastResponse writeable which > won't even require a change of event OnHeaderData. Much better since it would probably not break anything. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Or

[twsocket] [OFF TOPIC] CodeGear is looking for C++Builder field testers

2007-04-22 Thread Francois PIETTE
Since some of ICS users are using C++Builder, I think this could be interesting for them: http://www.stevetrefethen.com/blog/CodeGearIsLookingForCBuilderFieldTesters.aspx In the past, some /active/ field testers have received the full product for free when field test is finished. Please do not

Re: [twsocket] 501CannotRETR.Error-SocketwithicsFtpServ(V6forDelphi7)

2007-04-22 Thread Francois PIETTE
however the server obviously didn't call Data.ShutDown(1) for some reason? One reason you could no see the shutdown packet is that the receiver stopped to receive data and the TCP window is full. How would that be logged? I've nothing noted like that. See attached LanWatch screendump. It s

Re: [twsocket] Hash algorithm

2007-04-22 Thread Francois Piette
> if I remember correctly ICS has a hash algorithm (MD5?) built > in somewhere. Am I right on this? Yes. MD4, MD5 and SHA1. > And if, which one and in what unit? IcsMD4, IcsMD5 and IcsSHA1 all in vc32 folder. > Is it already included in V5.2x? In V5 and V6. > I might want to use it and I'd

Re: [twsocket] twsocket Server

2007-04-24 Thread Francois Piette
> I have an application that creates the data to send over a > socket on the fly and would like to have a progress bar that > tells me how much data is left to send. Since it is your application that send the data and know how many data is left to send, I think it is not a socket problem at all !

Re: [twsocket] Hash algorithm

2007-04-24 Thread Francois PIETTE
> Where from a structure standpoind shall I integrate it in the Wiki? > Make a new section Hashes? I think a section in http://wiki.overbyte.be/wiki/index.php/ICS_Components_Reference page would be OK. For example just between "Helper Components" and "List of demo programs". The section title

Re: [twsocket] Secure FTP

2007-04-26 Thread Francois Piette
> Does ICS support secure FTP? ICS-SSL support FTP over SSL (FTPS) and TLS. ICS-SSL doesn't support FTP over SSH (SFTP). SSL => Secure Socket Layer, a general purpose strong cryptography transport, used by HTTPS and others. SSH => Secure SHell, a cryptography system aimed at "telnet", mainly on U

Re: [twsocket] How to get the call stack programmatically?

2007-04-28 Thread Francois PIETTE
I think JCL or JVCL has a function for call stack. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Saturday, Apr

Re: [twsocket] Bug in Arno's latest THttpCli

2007-04-30 Thread Francois PIETTE
This log doesn't tellthere is a bug in the component. Anyway, it would be interesting to see what code correspond to the stack trace (line numbers are not very usefull if we have not the exact same source code as you). -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html --

Re: [twsocket] Bug in Arno's latest THttpCli

2007-04-30 Thread Francois PIETTE
I cannot post the > entire project... > > SZ > > On 4/30/07, Francois PIETTE <[EMAIL PROTECTED]> wrote: >> This log doesn't tellthere is a bug in the component. >> Anyway, it would be interesting to see what code correspond to the stack >> trace (line nu

Re: [twsocket] Bug in Arno's latest THttpCli

2007-04-30 Thread Francois PIETTE
> On 4/30/07, Francois PIETTE <[EMAIL PROTECTED]> wrote: >> You have to add ICS units to your project so that madExcept has line >> numbers >> for ICS units as well. This way you know where in >> TCustomLineWSocket.Destroy >> and THttpCli.Destroy it h

Re: [twsocket] HTTPCli v6 Download Progress

2007-05-06 Thread Francois Piette
> Is there an example that demonstrates how to monitor a HTTPCli.Get() > progress for displaying a progress bar? In short, from OnHeaderEnd or OnDocBegin, use ContentLength property to know the total file size. Then in OnDocData event you can count the bytes and update your progress bar. Nte that

Re: [twsocket] NTLM on multi-user-per-thread FTP case

2007-05-08 Thread Francois PIETTE
I suggest you post a new message (new thread, new message, do not use reply button) with a proper subject because as I understood your problem is not to have NTLM built into the FTP server component but to validate the usercode/password given by the FTP client against Windows domain. As Arno ex

Re: [twsocket] TWSocket Digest, Vol 219, Issue 3

2007-05-12 Thread Francois PIETTE
> On a LAN even if there is no FTPServer active the > FTPClient takes 20 secs to timeout. I changed Timeout > from 15 to 2 to no avail. I use FTPClient1.OpenAsync. Please use proper subject ! If you reply to "digest mode", always change the subject. Try with FtpTst sample program. Try with Window

Re: [twsocket] HttpServ

2007-05-12 Thread Francois PIETTE
> Nevertheless, connection are lost and the server is not usable anymore. Can you better define what doesn't work ? It is a perfectly reproductible problem or just happend sometimes ? > It's no problem to place the HttpServ.pas V3 file into the same project > folder so that it uses this HttrpServ

Re: [twsocket] HttpServ fixed

2007-05-13 Thread Francois PIETTE
> {$IFNDEF NO_KEEPALIVE_CLOSE_CHECK} >if FKeepAlive = FALSE then {Bjornar} > {$ENDIF} >CloseDelayed; There are a lot of places where " if FKeepAlive = FALSE then {Bjornar}" code is. Do have changed all ? Why not act where FKeepAlive is assigned instead instead of where it is

Re: [twsocket] SmtpCli and the results of some tests

2007-05-13 Thread Francois PIETTE
> The thread also has a Cancel method which sends a special message to the > thread which also makes it leave his message loop and does a abort on > the control socket of the smtpcli and on the smtpcli. Instead of wm_mailcancel, you can use standard WM_QUIT which makes GetMessage return false so

Re: [twsocket] HttpServ fixed

2007-05-13 Thread Francois PIETTE
HttpServ fixed > Changed them all >> Why not act where FKeepAlive is assigned instead instead of where it is >> used > Wasn't sure that would work different in other places. > I can't test the service locally and the downtime of those servers have to > be an abolute

Re: [twsocket] FTP Timeout on LAN

2007-05-13 Thread Francois Piette
> > Try with FtpTst sample program. > > Try with Windows command line. > On one machine the results of > Command line timeout = 20 secs > FtpTst timeout = 20 secs. As you can see, the timeout is the same for both ICS and Windows command line utility. This means it is the default timeout impos

Re: [twsocket] Freeware HTTP download manager that I have no idea whatto do with...

2007-05-16 Thread Francois Piette
FYI: I haven't advertized it, but the latest V6 beta include a multipart HTTP download component and a nice multipart progressbar. As the name implies, the new component download a file using as many HTTP connections as you like. I made a nice demo also. The code still has some little problem with

Re: [twsocket] HttpSrv closing HTTP/1.1 connectionswithout Connection header

2007-05-16 Thread Francois Piette
> Can you include the fix in the official sources? Will do. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Primož Gabrijelčič" <[EMAIL PROTECTED]> To: "'ICS support mailing'" Sent: Wednesday, May 16, 2007 2:24 PM Subject: Re: [twsocket] HttpSrv closing HTTP/1.1

Re: [twsocket] Sending objects using wSockets

2007-05-16 Thread Francois Piette
> I am new to WSockets and am writing an client server app that sends > an object across a network to the clients. I would need the server to > broadcast this information to all client on the network. Where do you have difficulties ? 1) Sending an object thru a TCP/IP connection ? Hint: S

Re: [twsocket] Freeware HTTP download manager that I have noideawhatto do with...

2007-05-16 Thread Francois Piette
> > FYI: I haven't advertized it, but the latest V6 beta include a multipart > > HTTP download component and a nice multipart progressbar. As the name > > implies, the new component download a file using as many HTTP > > connections as you like. I made a nice demo also. The code still has some > >

Re: [twsocket] Newbie problems with TWSocket.

2007-05-19 Thread Francois PIETTE
> I'm puzzled to find out what i'm doing wrong. > I made a component with both the TWsocketserver > and A TWsocket as client to be used in a app. > > Server is running. > > Can i connect and send a string in the same event ? No. ICS is asynchronous. Calling Connect is just a reauest to connect. Yo

Re: [twsocket] Newbie problems with TWSocket. (balbaro)

2007-05-20 Thread Francois PIETTE
> But then for a response > Is this correct ? > > 1) In server.DataAvailable event : server : ClientServer.sendstring > response; > 2) In Server : ClientServer.Datasent event : > server.clientserver.closedelayed It depends on the protocol you are designing. Most protocols in use (FTP, SMTP, POP3 a

Re: [twsocket] Fw: [IQReverseProxy] Problem with chunked encodingand IIS

2007-05-22 Thread Francois PIETTE
>> Is Connection: close illegal with chunked encoding? >> I have never thought so! > Any answer to this pls? At least a comment? No idea. Ask Google :-) [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www

Re: [twsocket] TSmtpCli Attach files without real files

2007-05-22 Thread Francois PIETTE
Out of my mind without checking the source code: You may override the function which read the data frm file. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Co

Re: [twsocket] Seeking OO design suggestions

2007-05-28 Thread Francois PIETTE
You can think about how ICS-V6 components are implemented. They all derive (inherit) from the same base class (TIcsWndControl). This class is a generic class. Then every component use (by delegation) one or more TWSocket to implement the specific protocol with properties, methods and events spec

Re: [twsocket] ICS v5 compatibility / WndProc handling

2007-06-03 Thread Francois PIETTE
> My vote is pro, depends on Francois, he's the (busy) boss ;-) OK. Also update the comment in french: // Les exceptions doivent etre gérées, sinon l'application sera // liquidée des qu'une exception se produit ! // All exceptions must be handled otherwise the application // will

Re: [twsocket] ICS v5 compatibility / WndProc handling

2007-06-03 Thread Francois PIETTE
understand it with a little help from the Babelfish, but its > translation was less than satisfactory. > > Best regards, > Primoz > >> -----Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> On Behalf Of Francois PIETTE >> Sen

[twsocket] Converting ICS samples from V5 to V6

2007-06-03 Thread Francois PIETTE
Hi All ! ICS-V5 has a lot of sample programs, most of them have not yet been ported to ICS-V6. I'm seeking for some volunteers to do the porting. Basically it is very simple and mostly involve changing the unit names in the uses clause and updating the sample name, prefixing it with OverbyteIcs

Re: [twsocket] socket connexion over HTTP/80

2007-06-08 Thread Francois PIETTE
> i'm new and i would have some question : You're welcome. > - I need to establish a connexion socket between a client and a server > (with > Delphi). > but i need the socket connection connect over a network blocked by a > firewall/proxy which accept only HTTP request on port 80. > > is it poss

Re: [twsocket] socket connexion over HTTP/80

2007-06-08 Thread Francois PIETTE
>> But reading your question, I'm not sure you want to issue a request to a >> webserver or just traverse a HTTP proxy ? >> If it is the former, then THttpCli component is OK. >> If the later, then you can use TWSocket directly, sending the HTTP >> "CONNECT" command to the HTTP proxy. > In fact, i

Re: [twsocket] socket connexion over HTTP/80

2007-06-08 Thread Francois PIETTE
>> You have to send a line like this: >> CONNECT hostname:portnumber HTTP/1.0 >> and then wait for the proxy reply. Then you are connected to the remote >> server. >> This is what ICS-SSL use for SSL connections thru a proxy. > > Thanks ! > but does standard Delphi components (like TClientSocket TS

Re: [twsocket] [FTP] Recursive upload?

2007-06-10 Thread Francois PIETTE
Note: ICS support mailing list /not/ the place to compare ICS with other components. Please use a general purpose mailing list such a [EMAIL PROTECTED] (you see: same list server). I will answer your technical questions: > - recursive upload to FTP server (ie. just point to a source directory,

[twsocket] ICS registration

2007-06-17 Thread Francois PIETTE
As you subscribed to ICS support mailing list, you probably use ICS. Good ! But have you taken time to register your ICS copy ? ICS is freeware but to use it, you must register it. Registration is very simple: just mail a [real, paper] picture postcard to the author (me). You can find instruction

[twsocket] Register your ICS !

2007-06-17 Thread Francois Piette
Please take time to register your ICS. See readme.txt for details (In short: you must mail a picture postcard to me). Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framew

Re: [twsocket] THttpServer

2007-06-20 Thread Francois Piette
Probably you should make available somewhere a small test (the smallest possible actually) which reproduce the problem so that the one willing to investigate can do it in a snap. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Co

Re: [twsocket] THttpserver Componet

2007-06-20 Thread Francois PIETTE
> I am using ICS THttpserver Component.i created a webserver .so i > want to know that does this component support ISAPI application. Someone wrote ISAPI/CGI support. See "usermade" page at my website. This code probably need a little refresh. btw: basically ISAPI/CGI is completely against

[twsocket] New ICS-V6 and ICS-SSL-V6 available

2007-06-24 Thread Francois PIETTE
I have uploaded new versions for ICS-V6 and ICS-SSL-V6 to my website. I have to give special thanks to Arno Garrels for his work, and also to Angus Robertson. -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) ht

Re: [twsocket] New ICS-V6 and ICS-SSL-V6 available

2007-06-25 Thread Francois PIETTE
> Where can we get the compiled latest OpenSSL DLLs? You can download from ICS-SSL website in the download section. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit o

Re: [twsocket] New ICS-V6 and ICS-SSL-V6 available

2007-06-25 Thread Francois PIETTE
>I know I asked this before but since the answer was in French I cannot > recall it--and I do not want to go back to my backup. Can you tell me the > pwd of the ICS-SSL zip? Sent privately... -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mai

Re: [twsocket] New ICS-V6 and ICS-SSL-V6 available BCB2006COMPATIBILITY WARNING

2007-06-25 Thread Francois PIETTE
GINE\REVERSEPROXYCLIENTCLASSUNIT.OBJ > > Any idea? I remember seeing this before, here and myself but it insists! > There must be something wrong in the package itself > > Best Regards, > > SZ > > - Original Message - > From: "Francois PIETTE" <[

Re: [twsocket] [ICS-SSL] New ICS-V6andICS-SSL-V6 availableBCB2006COMPATIBILITY WARNING

2007-06-26 Thread Francois Piette
ssage - From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "'SSL implementation for ICS'" <[EMAIL PROTECTED]>; "ICS support mailing" Cc: "Francois PIETTE" <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2007 11:10 AM Subject: Re

[twsocket] [OT] C++Builder Day

2007-06-26 Thread Francois PIETTE
Currently there is an online conference about C++ Builder 2007. http://borland.interwise.com/borland/iClass/LB4974/default.asp Next session start within a few minutes (9am in the US, 8pm in Paris). -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the free

Re: [twsocket] TWSocketServer

2007-06-28 Thread Francois Piette
> > I think you must create one instance of TWSocketServer per port. > >> Is a TWSocketServer can manage several port ? > > Arno did start work on a new socket server that supported multiple ports, > useful for FTP with SSL where you may want to listen on two or more ports. A work around is to us

Re: [twsocket] Some socket problems

2007-06-28 Thread Francois PIETTE
There is a sample ISAPI DLL included with ICS-V5. Have a look ! -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "A Drent" <[EMAIL PROTECTED]> To: Sen

Re: [twsocket] TWSocketServer in thread

2007-06-29 Thread Francois PIETTE
> My program works with the main form and 3 threads (A, B & C). > Two of this threads (A & B) are created by main form and the third (C) is > created by thread A. > > Each thread create, run and destruct a server (TWSocketServer) in > Execute() > method. > > For thread A and B, my client applicati

Re: [twsocket] NOFORMS

2007-07-16 Thread Francois Piette
> Do I need to define NOFORMS in a thread when a blocking call (Http-Get) is used ? > > I'm using it without in a thread and it works fine (using it 2 years) > > I need to exchange a lot of database connections to webservice connections and the main thread doesn't need the NOFORMS define. > I would

Re: [twsocket] [begginer] TFtpClient : Put binary file : corrupted

2007-07-23 Thread Francois Piette
TypeBinary must be done after logon and before transfert. Display FTP messages to see what happend. Add error checking. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier fram

[twsocket] Sample conversion from ICS-V5 to ICS-V6

2007-07-24 Thread Francois Piette
I'm still looking for a volunteer to convert some of the ICS-V5 samples to ICS-V6 version. Most samples are easily converted since it is merely a simple change in the uses clause to add "OverbyteIcs" in front of each ICS "used" unit. Also C++ sample are completely outdated. They need to be updated

Re: [twsocket] FTPClient : CHMOD

2007-07-24 Thread Francois Piette
> How to do with FTPClient a CHMOD command? Use TFtpCli.Quote method to send any non standard command to the server. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier frame

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

2007-07-25 Thread Francois Piette
> Ok then how do we move the sockets out of CLOSE_WAIT state when the closing > sequence is incomplete because of missing client packets?? Do not assume we > are using LAN and no-packet-loss networks. Winsock will timeout and give an error. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsu

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

2007-07-25 Thread Francois Piette
> So how to overcome it? Francois says the Winsock would timeout at some time > and raise an error but that does not seem to be the case! Well you are telling me you get the error 10053... -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Fastream Technologies" <[E

Re: [twsocket] Proposal for THttpCli.Abort

2007-07-26 Thread Francois Piette
> Could you please apply my change to your source? This require careful look at the implication. I have no time right now to do it. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Mu

Re: [twsocket] What determines the number of concurrent connections?

2007-07-27 Thread Francois Piette
ling" Sent: Friday, July 27, 2007 3:20 PM Subject: Re: [twsocket] What determines the number of concurrent connections? > Francois, > Francois Piette wrote: > >> It's both machines that limit the connections with my server, > >> but the source server example works just

Re: [twsocket] What determines the number of concurrent connections?

2007-07-27 Thread Francois Piette
> I am testing on an XP machine, and I have also tried testing on a Server 2003 > machine, and combinations of both with the same results. It is the XP machine which limit the number of connections. With Win2K3, you should be able to have thousands of connections, provided you have anough RAM. Sea

Re: [twsocket] What determines the number of concurrent connections?

2007-07-27 Thread Francois Piette
> It's both machines that limit the connections with my server, > but the source server example works just fine. Not sure I understand... Do you mean the sample program delivered with ICS works OK but the code you wrote yourself is limited in the number of connections ? Contribute to the SSL Effo

Re: [twsocket] 501 Cannot STOR. Error 10053 from McAfee on data port

2007-08-02 Thread Francois PIETTE
> How can I change the data port? > This seems to be always chosen by the client incoming. In no passive mode, yes it is always the same port. > PASV makes no difference. Sure it make a difference. In PASV mode, the server select the port and accept connections on that port. Have a look at the

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

2007-08-05 Thread Francois Piette
> I searched the archive but C# seem to return every single mail ever sent to > the list so I am not sure if this has been discussed earlier. > > Anyway, I am doing some Visual Studio 2005 projects and I want to have a > good async-component. Basically TWSocket but that it can be used in C# and > .

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

2007-08-06 Thread Francois Piette
> I figure that it's v 6.0 that is compatible with Delphi.net? There was also a V5 compatible, but it has not been maintened. You can find on Delphi companion CD or at http://cc.codegear.com. V6 is totally different regarding .NET: V6 is single source for both Win32 and .NET. I have updated it rec

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

2007-08-06 Thread Francois Piette
> However, as far as I know, it is not trivial to compile a complex > component like TWSocket into managed code. You can try, but I'm not > sure it will work without modifications. The work has been done. See my previous message to Fredrik. Contribute to the SSL Effort. Visit http://www.overby

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

2007-08-06 Thread Francois Piette
ted(lSocket_OnSessionConnected); lSocket.OnDataAvailable += new TDataAvailable(lSocket_OnDataAvailable); lSocket.Connect(); I was thinking of adding it to the Wiki. Would the FAQ be the proper place to have it? Regards, Fredrik. -Ursprungligt meddelande- Från: [

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

2007-08-06 Thread Francois PIETTE
> Added http://wiki.overbyte.be/wiki/index.php/FAQ._Microsoft_.NET_framework > as well as a link in the FAQ. Thanks. > Unfortunately I added another one as well since I got some weirdness with > the wiki-naming style and what was shown as a title. Can the old one be > deleted? I don't see it. I

Re: [twsocket] File size

2007-08-06 Thread Francois PIETTE
> I'm ising THttpCli component to download a file. > Before I call the Get method, is there a solution to know the file size ? Use Head method and check ContentLength property. If -1, then the server doesn't send document size and you have no way to know the size without downloading it. -- [EMA

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

2007-08-06 Thread Francois PIETTE
> I saw it a couple of hours back, Me too ! > now the above link doesn't work for > me (There is currently no text in this page). I haven't removed it ! Maybe Fredrick is playing with it ? -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Arno Garrels" <[EMAI

Re: [twsocket] Using HTTPServer

2007-08-08 Thread Francois PIETTE
> I am trying to work with the Server demo of the ICS components. How do I > obtain the body of the message sent in the GET request? I only saw the > Client->RequestHeader but no related function for obtaining the body. Not sure I fully understand the question. You are talking about HTTP server

Re: [twsocket] Using HTTPServer

2007-08-08 Thread Francois Piette
>> How do I obtain the body of the message sent in the GET request? > The sample WebServer demo application handles the request sent to the > webserver and displays the header sections but not the body (through the > Client->RequestHeader->Count call). Usually a GET request has no body. POST has a

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

2007-08-12 Thread Francois PIETTE
You have to change the options to have "writable const". -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "TK Boyd" <[EMAIL PROTECTED]> To: Sent: Sund

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

2007-08-13 Thread Francois PIETTE
> Assignable Typed Constants This is the correct option. > ... but I could only get into that when I had a project open. I don't remember very well D2, but the options for the library are for sure stored somewhere. If not, you can add in the offending source a compile time directive {$J+}. Nor

Re: [twsocket] ThreadDEtach with THttpConnection problem

2007-08-22 Thread Francois Piette
> In triggersessionclosed, I postthreadmessage to a message handler in the > same worker thread which then thread-detaches and posts the object to > listener thread. However, in every 1-2 hours, under heavy load, the worker > thread gives an AV which I suspect is due to a recv/send callback event >

Re: [twsocket] ThreadDEtach with THttpConnection problem

2007-08-22 Thread Francois Piette
> What kind of an AV would yeield no exception message? Use madExcept (www.madshi.net). It is an incredibly useful tool. Also use FastMM (included in BDS2006 but probably a good idea to download latest version from SourceForge) and turn all checks on. Contribute to the SSL Effort. Visit http://w

Re: [twsocket] HTTPCli POST method

2007-08-22 Thread Francois Piette
> I'm using components HTTPCli and FTPCli. I have no troubles with > the second one. But i have a question about HTTPCli. How could i send > some values to a specified parameters using POST method? Basically, you build a TStream with the data formatted as your server expect it (urlencoded, mime,..

Re: [twsocket] Problems writing tester with connection counts

2007-08-25 Thread Francois PIETTE
> 2. Even though I use local messages to start and stop the connections, the > Client application will not process any other messages unless I call > Application.Processmessages, which I call in the OnSessionConnected event. That is probably your problem. NEVER call ProcessMessages or any other fo

Re: [twsocket] Problems writing tester with connection counts

2007-08-26 Thread Francois PIETTE
> However, TWSocketServer does not have what I need for these tests. I am > not > wanting to know concurrent or contiguous client connections. If I was, > then > yes, ClientCount would be sufficient. Rather, I am trying to determine > how > many connection lifecycles can occur over a period o

Re: [twsocket] SocketServer doubt

2007-09-03 Thread Francois Piette
>I'm working with a TCP Server using component Socket Server, When i >disconnect a client, by removing it's cable for example, the port on the >server stays opened. How can I detect that the client has disconnected. The best way to do that is to handle it at the application level. Have your client

Re: [twsocket] PROBABLY A SIMPLE QUESTION

2007-09-04 Thread Francois Piette
Have a look at http://www.magsys.co.uk/delphi/magmonsock.asp btw: Is you capslock key broken ? Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://

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

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] How can I use ISA proxy?

2007-09-12 Thread Francois Piette
> I use the HttpCli to get web page, but my intranet use ths ISA proxy, > it use the NTLM authentication, What shall I do? Simply enable NTML authentication at the HttpCli component (update to the latest ICS if your version doesn't support NTML). And provide the require credentials. Select your IS

Re: [twsocket] TWSocket Stop Listening After Certain Numbers ofConnected Clients.

2007-09-12 Thread Francois Piette
Have you tried with one of the server demos included with ICS ? Just to see if it is related to your code or elsewhere. It is also possible that windows run out of other kind of resource. Have you "instrumented" your program with - for example - FastMM which could tell you about memory leaks ? An

Re: [twsocket] Converting some perl to Delphi using sockets

2007-09-13 Thread Francois Piette
Use TWSocket component to connect to the server using same parameters (127.0.0.1/TCP/1099). Then send the data in the same format, then grab the response (using OnDataAvailable event and Receive method) then gracefully close the socket (Shutdown). Contribute to the SSL Effort. Visit http://www.ove

Re: [twsocket] Running ICS servers on the same port as IIS

2007-09-15 Thread Francois PIETTE
> Our client has 3 IPs. They want to run a different server on port 80 of > each. IIS6-7 does not cooperate. I am unable to find any resources using > google. Any known issues/workarounds? This is a how Windows (or any other OS I know) works. There is only one program which can listen on a given t

Re: [twsocket] Running ICS servers on the same port as IIS

2007-09-15 Thread Francois PIETTE
> Again, they want to run one server on different IPs same port. However, > IIS > does not like to share ports--grabs all IPs. IIS has setting to select IP addresses or to use all available IP. -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freew

Re: [twsocket] Ftp-file corruption check

2007-09-16 Thread Francois PIETTE
> How to check if a file is either uploaded correctly or not, I know that > ftpCli > supports MD5 command, but at the outside world there were no > commercial ftp hosting services that support MD5 command, > I only found one ftp hosting which supports XCRC and this is command as > far > as I know

Re: [twsocket] FTP Server demo fails

2007-09-19 Thread Francois PIETTE
> Any ideas what's causing this? No idea. > I'm unable to trace into the Pascal source for some reason. Add the component source code to your application project. You'll be able to débug. -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware I

Re: [twsocket] FTP Server demo fails

2007-09-20 Thread Francois Piette
> But am I corret in thinking it is only defined when I > recompile the ICS components and not in my app itself? Wrong. Define NOFORMS in /your/ application project. >> Correct, that won't work of course. In your ThreadProc create the component >> and call GetMessage(), TranslateMessage() and Dis

Re: [twsocket] FTP Server demo fails

2007-09-20 Thread Francois Piette
;> in the service thread of TThread since there is one already pumping > >> messages (ProcessRequests). > >> > >>> > >>> 2. Are the events; OnValid called from the context of the main > >>> process or a background thread? > >> > >

Re: [twsocket] Ftp-file corruption check

2007-09-23 Thread Francois PIETTE
If you want ot get directory listing to get the file size, you are on the wrong track. FTP has a sie command to get the size of a file. Use it. Now if you really want to dir list for a file only, most FTP server use the host file name as filter. -- [EMAIL PROTECTED] The author of the freeware m

Re: [twsocket] ICS Server raises external exception c000001d

2007-09-24 Thread Francois Piette
http://www.google.be/search?q=C0d1 > Sometimes it gives "privileged instruction" and then crashes. This usually happend when executing data as instructions. This mostly result of bad pointer or using an object or memory block after it has been freed. -- [EMAIL PROTECTED] Author of ICS (Inter

Re: [twsocket] TWSocket multi-client example

2007-09-26 Thread Francois Piette
> I need to write a TService application that will > receive (potentially) multiple client TCP connections > concurrently, and perform some simple stateful > transactions with them. For example: > > 1. Client-A connects to the server > 2. Server responds with banner > 3. Client-A sends data >

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