Re: [twsocket] Message Processing of FTP-Client in threads

2005-03-17 Thread Francois PIETTE
Maybe be it workes, because there is a Application.Processmessages somewhere in my code. You should not call Application.Processmessages from a thread. However, I have solved my problem in the meanwhile by using MsgWaitForMultipleObjects. If you look into ICS source code, you'll see that it

[twsocket] HTTP client: what about posting zero bytes ?

2005-03-19 Thread Francois PIETTE
Actually, THttpCli.DoRequestAsync is implemented to trigger an exception if there is nothing to POST/PUT: if ((Rq = httpPOST) or (Rq = httpPUT)) and (not Assigned(FSendStream) or (FSendStream.Position = FSendStream.Size)) then raise EHttpException.Create('HTTP component

Re: [twsocket] HTTP client: what about posting zero bytes ?

2005-03-21 Thread Francois Piette
Message - From: Maurizio Lotauro [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, March 20, 2005 12:00 AM Subject: Re: [twsocket] HTTP client: what about posting zero bytes ? On 19-Mar-05 18:43:39 Francois PIETTE wrote: Actually, THttpCli.DoRequestAsync is implemented

Re: [twsocket] HTTP client: what about posting zero bytes ?

2005-03-21 Thread Francois PIETTE
Anyone has complained that he cannot send an empty data using the POST or PUT method? Well, I have one of my apps that doesn't work in some wases: when data to send is empty. And it is perfectly OK for the app to have a post with empty data. And I can't change the post to a get

Re: [twsocket] ICS repeater

2005-03-24 Thread Francois Piette
I looking for a repeater for ICS like the VNC repeater: From a remote location, the client reach a repetaer a fix address behind a firewall and this one routes the packet to one of the internal machines not reachable from outside. This is what I name a proxy. Any idea ? I have no idea

Re: [twsocket] FTP server manual pasv ports

2005-03-24 Thread Francois PIETTE
Any idea? Not implemented. -- [EMAIL PROTECTED] http://www.overbyte.be . - Original Message - From: Fastream Technologies [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, March 24, 2005 1:15 PM Subject: [twsocket] FTP server manual pasv ports Hello,

Re: [twsocket] mget ont TFtpCli

2005-03-28 Thread Francois PIETTE
Do a list and then iterate thru the list to get each file. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Léo [EMAIL PROTECTED] To: twsocket@elists.org Sent: Monday, March 28, 2005 7:23 PM Subject: [twsocket] mget ont TFtpCli How do I a multiple get for files

Re: [twsocket] RE2: FTPClient Get-Command-Problem on UNIX-Server

2005-03-29 Thread Francois PIETTE
Is this then the right way? Looks good. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Mice Cage [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, March 29, 2005 4:42 PM Subject: Re: [twsocket] RE2: FTPClient Get-Command-Problem on

[twsocket] New release: minor bug fix, new sample

2005-04-14 Thread Francois PIETTE
A new ICS version is available. A small bug has been fixed in the HTTP client component that affected authentication with iPlanet Web Proxy Server (found by Mr Bloms and Tomachinsky). A new console mode sample: ConUdpLstn. It is the GUI sample UdpLstn ported to console. It make use on the

Re: [twsocket] Is there a way to download a file in threads?

2005-04-15 Thread Francois Piette
I am sorry for disturbing you but I am not sure I understood your point. Isn't ICS in competition with other components like The support mailing list is defenitely not the place to discuss about competitors or compare features or design decisions and goals. Use borland winsock forum or other

Re: [twsocket] New release: minor bug fix, new sample

2005-04-16 Thread Francois PIETTE
release: minor bug fix, new sample On 14-Apr-05 20:28:50 Francois PIETTE wrote: A new ICS version is available. A small bug has been fixed in the HTTP client component that affected authentication with iPlanet Web Proxy Server (found by Mr Bloms and Tomachinsky). The same fix should be applied

Re: [twsocket] Question How can I setup checkboxes to see theFTP-Status

2005-04-16 Thread Francois PIETTE
I'm coding with Delphi 2005. Win32 personnality ? Till now I don't see the ftp-status. I like to have 3 checkboxes for each status (Online, 421, Offline). If one status is true the checkbox for the status should be checked. I know that FTPCLI has a status-Option with a log. How can I do

Re: [twsocket] Question How can I setup checkboxes to seetheFTP-Status

2005-04-16 Thread Francois PIETTE
I don't see any error-message. For example the FTP is not connected, delphi2005 gives me the error-message with the option to break or continue. i think i miss something. So what do I need minimal to get the error-messages? Use OnBgException event. Use Try/Except Use Application.OnException --

Re: [twsocket] Multithreaded http...

2005-04-17 Thread Francois PIETTE
:-( I cant handle it ;- I dont really understand the HTTPAsy example ;-( Could anybody help me? HttpAsy is a simple application which take a list of URL and either get those URL one after the other (sequencially) or get all at the same time using a component for each one. For example i

Re: [twsocket] Question How can I setupcheckboxestoseetheFTP-Status

2005-04-17 Thread Francois PIETTE
Both MsgWaitForMultpleObjects and Sleep seriously slow down a program that's trying to do multiple jobs at the same time. Maybe you are referring to the first use I made of MsgWaitForMultpleObjects. Since then, I have changed the order in the code and now there is no more slow down, imo. --

Re: Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Francois PIETTE
What will happen when someone will change the system time? Then you are in trouble :( Not if she use GetTickCount which returns the nb of milliseconds since the system is up and running. Restart to zero after approximately 49 days. That is perfectly suitable for timeout determination. --

Re: [twsocket] HttpCli and the 404 status code

2005-04-18 Thread Francois Piette
Probably a solution could be to expose the FRequestDoneError field. The status code should be meaningful only if FRequestDoneError=0. You mean reporting 10060 (and others) to the error field ? Yes, probably good. But statuscode must still return 404 otherwise probably a lot of existing

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-21 Thread Francois Piette
So this ruin everything... semi-multithreading won't make its role... Please elaborate. -- [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 our website at

Re: [twsocket] Using THtmlSmtpCli in a TWebModule

2005-04-22 Thread Francois Piette
I have been using the THtmlSmtpCli for some time and it works great. I have some web based code and when I put this object in it, it doesn't seem to work any more... When I run Connect it seems to go into the smtpDnsLookup state and stay there. Is there anything I need to do to make it work

Re: [twsocket] HttpCli buffer size...

2005-04-23 Thread Francois PIETTE
Whats the buffer size od HTTPCli? When im using strpas(buffer) in OnDocData event... is there any way to predict if the single buffer is full doc data or not? OnDocData event pass a length buffer in argument. The receive buffer is dimensionned using HTTP_RCV_BUF_SIZE constant. You shouldn't

Re: [twsocket] Reasonable timeout

2005-04-23 Thread Francois PIETTE
I just wonder how other programs can provide a user defined TCP timeout that appears to overrule the system setting or is something like that just a fake? I've searched on MSDN and found that setsockopt has those options: SO_RCVTIMEO Receives time-out in milliseconds (available in the

Re: [twsocket] missing header file

2005-04-24 Thread Francois PIETTE
] missing header file I searched my computer and the file WSocket.h does not exist anywhere, I must have made an error on the installation. I am using BCB6 Personnel. Francois PIETTE [EMAIL PROTECTED] wrote: When I place a wsocket component on a form I get the following warning: Unable

Re: [twsocket] Problem in the HttpCli authentication

2005-04-25 Thread Francois Piette
Doh ! -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Maurizio Lotauro [EMAIL PROTECTED] To: twsocket@elists.org Sent: Monday, April 25, 2005 12:58 AM Subject: [twsocket] Problem in the HttpCli authentication Hello, I discovered that the HttpCli

Re: [twsocket] Reasonable timeout

2005-04-25 Thread Francois Piette
1:00 AM Subject: Re: [twsocket] Reasonable timeout Hello! Francois PIETTE wrote: I just wonder how other programs can provide a user defined TCP timeout that appears to overrule the system setting or is something like that just a fake? I've searched on MSDN and found that setsockopt

Re: [twsocket] Any alternatives to multithreading?

2005-04-25 Thread Francois Piette
Is there *any* way to slow down ICS, so message queue overflow won't occur so often? Unless you use UDP or wsoSIO_RCVALL option, there is no reason to have a message queue overflow. Using TCP, if you don't read data as fast as the sender is able to send, the protocol is designed so that

Re: [twsocket] Redirect a browser to another port

2005-04-25 Thread Francois Piette
You use a HTML relocation. Why not using a HTTP relocation ? -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, April 25, 2005 1:56 PM Subject: [twsocket] Redirect a browser

Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Francois Piette
Maybe you have a file permission problem. Your service is logged under system account or another account. Check that it has the required permissions. Also a side problem I'm having is: do you know of a simple way to parse the results from the DIR command into a simple list of filenames, sizes,

Re: [twsocket] FTP client and windows service problem

2005-04-26 Thread Francois Piette
It's easy to do a quick test using a TFileStream to write something in the service's folder to confirm it's a permission problem or not. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Nikolay Simeonov [EMAIL PROTECTED] To: 'ICS support mailing'

Re: [twsocket] [HELP] FtpServer : Long Process HOWTO

2005-04-26 Thread Francois PIETTE
FTP server component will send the files simultaneously to all client at their own speed. It is serialized only when in the event handler, not for sending files. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Guillaume MAISON [EMAIL PROTECTED] To: iCS support

Re: [twsocket] [HELP] FtpServer : Long Process HOWTO

2005-04-27 Thread Francois Piette
meaning that if the making of such a file in the event handler take some time (10 s let's say), and i have 10 clients asking almost simultaneously for images, the last one will have to wait for 100 secs before receiving anything. You you have to hang into the event handler for 10 seconds,

Re: [twsocket] Overwriting of HttpCli properties

2005-04-28 Thread Francois Piette
In my oppinion username and(or) passwords in the url are really useless to implement. I don't share your opinion. Think about Internet Explorer which inhibed this also. Only because they had a security problem in the visual part of their browser. This doesn't apply at all for a component.

Re: [twsocket] Overwriting of HttpCli properties

2005-04-28 Thread Francois Piette
Maybe a problem with my bad english :-( I read your message twice and don't understand. The changed behaviour you describe is the curent behaviour. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Maurizio Lotauro [EMAIL PROTECTED] To: ICS support mailing

Re: [twsocket] Redirection? [HTTPCli]

2005-04-29 Thread Francois Piette
Ok... i got follow redirection Enabled but it doesn't do what i thought it should do. I got a site... site with loading animation... But HTTPCli does not show the site after loading but only the loading state... :-( What can i do with that? I'm not sure I understand what you mean... If you

Re: [twsocket] Address already in use (Error #10048)

2005-04-29 Thread Francois PIETTE
Strange: error 10048 normally occurs when listening on a given port. Error 10048 occurs when you try to reuse a port that is already in use. Maybe your user is launching your program twice ? Also, have a look at this article: http://support.microsoft.com/default.aspx?scid=kb;en-us;319502 --

Re: [twsocket] Ping Packet size

2005-04-29 Thread Francois PIETTE
Strange. What happend when you use the demo application delivered with ICS ? You can confirm the large packet size by using a sniffer such as Ethereal (a link is on my links page). -- [EMAIL PROTECTED] The author for the freeware multi-tier middleware MidWare The author of the freeware Internet

Re: [twsocket] Ping Packet size

2005-04-30 Thread Francois PIETTE
Thanks for the rapid response! Well, you posted just when I was reading. I ran the demo, and the other side said they were 56 bytes. I downloaded the latest, rebuild the packages, and recompiled my program. Hopefully this will fix it. Won't know for sure for a couple days. Ping component

Re: [twsocket] Problem that i don't understand

2005-04-30 Thread Francois PIETTE
know why butt then I receive errors. You should indicate exactly which errors you have and where they occurs, exactly. When I debug step by step I end up in the code of TCustomWSocketServer.TriggerSessionAvailable, at the and of that procedure 'Client.StartConnection' I receive an access

Re: [twsocket] Overwriting of HttpCli properties

2005-04-30 Thread Francois PIETTE
properties On 28-Apr-05 07:56:34 Francois Piette wrote: Maybe a problem with my bad english :-( If your english is bad, what I must say of my english? ;-) I read your message twice and don't understand. The changed behaviour you describe is the curent behaviour. The point is that actually

Re: [twsocket] Redirection? [HTTPCli]

2005-04-30 Thread Francois PIETTE
- From: Francois Piette [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, April 29, 2005 8:54 AM Subject: Re: [twsocket] Redirection? [HTTPCli] Ok... i got follow redirection Enabled but it doesn't do what i thought it should do. I got a site... site

Re: [twsocket] The code

2005-04-30 Thread Francois PIETTE
What does the debugger says when you watch at FBanner, FLineEnd and Self ? Are you able to enter SendSr using F7 ? When you put a breakpoint on the first line of SendStr, do you reach that breakpoint before the exception ? -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message -

Re: [twsocket] new httpcli exception

2005-05-01 Thread Francois PIETTE
Are you using a proxy or not ? Are you using authentication ? -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Jack [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, May 01, 2005 9:26 AM Subject: Fwd: [twsocket] new httpcli exception

Re: [twsocket] ReadLine

2005-05-01 Thread Francois PIETTE
As expressed in the source code, ReadLine is deprecated. Anyway, it doesn't fit correctly with UDP protocol which is datagram oriented. Using lines with such protocol is strange. Now I have the problem that at one place in the program I need synchronus communication. I send out one byte and if

Re: [twsocket] ReadLine

2005-05-01 Thread Francois PIETTE
://www.overbyte.be - Original Message - From: Markus Humm [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, May 01, 2005 3:56 PM Subject: Re: [twsocket] ReadLine Francois PIETTE schrieb: As expressed in the source code, ReadLine is deprecated. Anyway, it doesn't fit

Re: [twsocket] ReadLine

2005-05-01 Thread Francois PIETTE
Do I really need a message pump in this case? You always need a message pump for ICS component (except TPing component) to work. Without message pump, no winsock event ! I think not, since the program never spends long times in the dll, because the data is given back to the caller very fast

Re: [twsocket] ReadLine

2005-05-02 Thread Francois Piette
You _always_ need a message pump. If the calling program doesn't provide one, you must provide one and to have one without interfering with the calling DLL it is better to have all you stuff in a thread. Consider a thread as a program within a program. If you don't want to have a

Re: [twsocket] ReadLine

2005-05-02 Thread Francois PIETTE
Defenitely not. Depending on the network traffic, you could easily have something like one thousand messages per second in the queue. The message loop must run full speed. As I said, you must either provide a callback to the DLL to call the application's message pump, or have you own

Re: [twsocket] ProcessMessages

2005-05-03 Thread Francois Piette
There are two other components in the dll which suffer from the very same problem. One is the timer and another is one for the other communication method which doesn't have a processmessages. Obviously, you failed to have a working message pump. Do you have any hints for these as well?

Re: [twsocket] Messages

2005-05-03 Thread Francois Piette
does a sending TWSocket need to have its messages processed? Yes, it have to. If yes how is this done? A simple loop directly after sending which calls processmessages of the socket? Anything that makes messages properly processed is good. But be aware of the context where it is called.

Re: [twsocket] ProcessMessages

2005-05-03 Thread Francois Piette
- the receiving TWSocket can't be a static component on the datamodule because it has to be in a thread? Yes, the component has to be _created_ within the context of the thread that will handle his events. In case of TWSocket, you have ThreadDetach and ThreadAttach methods if it is not

Re: [twsocket] Messages

2005-05-03 Thread Francois Piette
You can't call the message pump from anywhere. Where would it be impossible? Each time you call the message pump, you trigger message processing. If you trigger message processing, you must be prepared to have your event reentered. Basically it is not a problem but actually it is since most

Re: [twsocket] FTPCli. Problem with QUIT

2005-05-03 Thread Francois Piette
10053 is WSAECONNABORTED, that is the server closed the connection not gracefully. Given the fact that it result from the QUIT command, you can safely ignore that error. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Kim Mølgård Nielsen [EMAIL PROTECTED] To: ICS

Re: [twsocket] Messages

2005-05-03 Thread Francois PIETTE
udp.addr :=ip; What IP address do you use ? It must be either '0.0.0.0' or the IP address of the network interface you want to listen to. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: [EMAIL PROTECTED] To: twsocket@elists.org Sent: Tuesday, May

Re: [twsocket] ProcessMessages

2005-05-03 Thread Francois PIETTE
Wrong. Sending and receiving both use messages, even if in some cases it seems to be direct. So the sending part must be in another thread and call MessageLoop as well until the OnDataSent terminates the thread? Or how can I do this? A single thread can handle hundreds of event driven

Re: [twsocket] Thread Attach

2005-05-04 Thread Francois Piette
how does TWSocket.ThreadAttach work? I don't see where have to specify the thread. Or is it to be used in TThread.Execute and then is's automatically attached to the current one? You've got it ! Be aware that a thread context is not directly related to a thread's method. -- [EMAIL

Re: [twsocket] Error in OnDataAvailable

2005-05-04 Thread Francois Piette
In all these years I cannot remember I ever had a winsock error in OnDataAvailable of TWSocket. Someone has ??? Any other such expriances ? I think this is intersting to share. I don't remember having one. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your

Re: [twsocket] Messages

2005-05-04 Thread Francois Piette
The app. does something like this: repeat send something; wait some ms; until ende = true; This is bad design considering you are using an asynchonous component. You must replace any loop by a cascade of events. Just like any normal GUI program: you have a running message pump (you

Re: [twsocket] Thread Attach

2005-05-04 Thread Francois Piette
hm, curious. Now it works if I have the receiving component statically on the data module and have it Multihreaded:=true; and simply process messages like that while GetMessage(MsgRec, 0, 0, 0) do begin TranslateMessage(MsgRec); DispatchMessage(MsgRec) You have all events

Re: [twsocket] Messages

2005-05-04 Thread Francois Piette
I know that this is bad design, but that is used only for testing the dll, nothing more. Later it will be replaced by another dll which really will be event driven. For simple test purposes such a complicated event driven app. would be overkill! You are loosing your time writing 'test code

Re: [twsocket] Still the same

2005-05-04 Thread Francois Piette
May I send my project on this mailing list, in the hope that someone could help me It would be rejected by the mailing list processor. Instead, put you project (source code only) somewhere on a server and publish here in the list an URL to download it by the interested peoples. btw: Does the

Re: [twsocket] SocketServer send message ..

2005-05-05 Thread Francois PIETTE
what am I doing wrong? thx in advance You probably try to send a message using the socket that listen for connections. That's wrong ! When a connection is made, a new socket is created to handle the connection. Use that socket. btw: There is a chat sample delivered with ICS. -- [EMAIL

Re: [twsocket] Problem with HTTPServer

2005-05-05 Thread Francois PIETTE
I don't understand your problem. Returning a page as a reply of a POST is basic work. No need to change anything. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Fastream Technologies [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday,

Re: [twsocket] Sending video data via UDP

2005-05-07 Thread Francois PIETTE
The UdpSend/Lstn demo generates an error here (ListenBackLog Property does not exist), but I can read all the source. It is likely you have an old wsocket.pas or wsocket.dcu somewhere. Check you installation and be sure to delete every old file version. Use the latest version from my website.

[twsocket] Fixed version of HttpProt (authentication)

2005-05-08 Thread Francois PIETTE
Maurizio Lotauro worked hard on the authentication routines into HTTP client component. His work is ready for testing. You can download it from ICS download page. Here are some of his words: Hello Francois, attached you found the result of two weeks of hard work. It was very complicated

Re: [twsocket] Datetime in mail headers

2005-05-08 Thread Francois PIETTE
There are global variables in Delphi runtime you can change. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: twsocket@elists.org Sent: Sunday, May 08, 2005 8:28 PM Subject: [twsocket] Datetime in mail headers Hello, If

Re: [twsocket] FTP Client - Server close Connection

2005-05-10 Thread Francois Piette
how can I control from client application (with TFTPClient component) that server close connection? You have an error message or an exception when you send a command. And how can I upload files to my ftp directory (and downloads them from it)? If user doesn't have permissions on writing,

Re: [twsocket] proj zipped

2005-05-10 Thread Francois Piette
About the stripping part is a bit harder, cause, it's all linked to each other Good design would separate as much as possible the communication part from others parts such as GUI. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list

Re: [twsocket] FTP Client - Server close Connection

2005-05-10 Thread Francois Piette
Thanks. Does it mean that I can cyclical send some command (for example, to get list of files) each minute, and in the case of error user get message : Error connection? If your goal is to keep the connection alive (most server close it if no command is sent), then yes, you can simply send a

Re: [twsocket] File upload

2005-05-10 Thread Francois Piette
Anyone has some experience using the THttpServer for uploading file to the server application. Lat say an image file which is changed by the server and WenServ sample program delivered with ICS has Post sample. See this sample and then ask for your question, if any remains unanswered. that

Re: [twsocket] [FTP Client] - Files started with dot

2005-05-10 Thread Francois Piette
Use LIST -al This _may_work with some servers (basically unix boxes) but are likely not working on most. This is not specified in the FTP standard. It works with the servers that implement file list using the unix command ls accepting this kind of parameters. Directory listing is one area

Re: [twsocket] Help with ICS

2005-05-11 Thread Francois Piette
I use BCB 3.0. I download and instal latest version of ICS but if I try it I get error stack owerflow. It is likely that you have a function that call itself or call a second function that calls the first one. This is an endless loop which is terminated when the stack is overflowed. PS.

Re: [twsocket] Reuse Port ( TIME_WAIT )

2005-05-12 Thread Francois Piette
This is how sockets are working. If you use Windows, have a look at this article: http://www.winguides.com/registry/display.php/878/ -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of

Re: [twsocket] who disconnects in HTTP proto ?

2005-05-13 Thread Francois Piette
Who must close the session in HTTP proto ? The server or the client ? Reason is that I have TWSocketserver, with custom made protocol and there could be a HTTP client connect to it. Then I will send a HTTP redirect (302) to it. This is no problem but should I close session in the server or

Re: [twsocket] Video transmission

2005-05-13 Thread Francois Piette
It is likely that your video data is send into several data packets. So you have many OnDataAvailable events. You must reassemble data into a buffer before giving it to your video routine, unless your video routine is able to receive streaming data. -- [EMAIL PROTECTED] http://www.overbyte.be

Re: [twsocket] [HELP] FTP Server w/ client disconnection...

2005-05-16 Thread Francois PIETTE
There are two errors in your program: 1) You forgot to assigned ClientClass property and nevertheless you are using your own class TMyClient. This error cause the AV you noticed. It also caused the casting error you noticed: // GM 16.05.2005 : below is commented else i have an object

Re: [twsocket] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Francois PIETTE
1) Client connects to the FTP server 2) After timeout or in the case of connection error FTP server close connection 3) FTP client recieve (immediately) message that FTP server is not avialable 4) Other actions on the side of client How I can realaize the 3) step? Does anybody solved such

Re: [twsocket] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Francois PIETTE
Winsock nor the component will let you know the server disconnected before you try to send something. So the solution is to periodically send a command just to get the error in case the server closed the connection. Note that periodically sending a command will probably prevent the server from

Re: [twsocket] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Francois PIETTE
! -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Artem Antonov [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, May 16, 2005 4:43 PM Subject: Re: [twsocket] Disconnect from FTP Server [FTP Client] On Mon, 16 May 2005 15:44:25 +0200 Francois

Re: [twsocket] TMemoryStream [FTP Client]

2005-05-17 Thread Francois Piette
does FTP Client works with TMemoryStream to store result of DIR command in memory instead of in local file? Yes, use LocalStream property. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] TMemoryStream [FTP Client]

2005-05-17 Thread Francois Piette
does FTP Client works with TMemoryStream to store result of DIR command in memory instead of in local file? Yes, use LocalStream property. Thanks, it works. Does TStringSteram supports by TFtpClient? Any TStream derived class should work. If you don't see data, be sure to rewind the

Re: [twsocket] Threaded client?

2005-05-17 Thread Francois PIETTE
The reason I was thinking of a multi-threaded client is that I want to isolate this module with the main form. No need to have multithread for that. Just put your TWSocket into a TDataModule. It's enough. You can evn create them dynamicall in a pure .pas unit. fyi: Message handlers can be put

Re: [twsocket] [HELP]FTPServer within a service...

2005-05-18 Thread Francois PIETTE
Use a thread with his own message within your service to put all ICS stuff and you'll get rid of anything else. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Guillaume MAISON [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Wednesday, May 18,

Re: [twsocket] [HELP]FTPServer within a service...

2005-05-18 Thread Francois PIETTE
i'm wondering about the way to implement a FTP server (with thread on GetProcessing) within a Windows Service ? Does anyone has a sample ? The is a sample service in the demos. There is nothing very special to make a service using ICS. As long as there is a working message pump, ICS component

Re: [twsocket] Receive result of the first ReceiveStr() call twice

2005-05-18 Thread Francois PIETTE
Usually, when you receive the same data twice, it is because you called the message pump from one the ICS component event handler. Never call directly or indirectly ( ShowMessage, MessageBox,...) from an event handler that is called by hardware (a data packet comes from the network) unless you

Re: Re[2]: [twsocket] Threaded client?

2005-05-19 Thread Francois Piette
I know I can create a hidden window in the owner object but I would avoid doing that if there is an easier way. No easier way that I'm aware of. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: Re[2]: [twsocket] Receive result of the first ReceiveStr() call twice

2005-05-19 Thread Francois Piette
No, I don't have any message handler of my own in my code. I'm not talking about message handler of your own. I'm talking about calling the message pump directly or indirectly from an event handler. It's enough to put a ShowMessage somewhere or to call ProcessMessages to get the kind of

Re: [twsocket] Receive result of the first ReceiveStr() call twice

2005-05-19 Thread Francois Piette
... Never call directly or indirectly ( ShowMessage, MessageBox,...) from an event handler... Updating the caption of a label or the content of a memo could also make the message pump to be called. I do not agree. Those operations translate to sending a message to the Windows control.

Re: [twsocket] Receive result of the first ReceiveStr() call twice

2005-05-19 Thread Francois PIETTE
I do not agree. Those operations translate to sending a message to the Windows control. There is no call to the message pump. If you override WndProc of the form, and you place a breakpoint inside your custom WndProc. Then you can see that it is called imidiately when you update a caption

Re: Re[4]: [twsocket] Receive result of the first ReceiveStr() call twice

2005-05-19 Thread Francois PIETTE
Attempt to gracefully close the socket. If there is still some data waiting in the buffers it will try to send it. ***Do not use Close from within any TWSocket events, instead use CloseDelayed.*** You even have to call Shutdown(1) to really gracefully close the socket. Calling Shutdown will

Re: [twsocket] Connection not closed in WebServer with IE

2005-05-19 Thread Francois PIETTE
There is no need to - if you take a look at AnswerString in HTTPSrv, you have: But you are not using AnswerString. Are you ? -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Bruno Sonnino [EMAIL PROTECTED] To: twsocket@elists.org Sent: Thursday, May 19, 2005

Re: [twsocket] Connection not closed in WebServer with IE

2005-05-19 Thread Francois PIETTE
,'','',Header,Body); Bruno On 19/5/2005 13:35:13, Francois PIETTE ([EMAIL PROTECTED]) wrote: There is no need to - if you take a look at AnswerString in HTTPSrv, you have: But you are not using AnswerString. Are you ? -- [EMAIL PROTECTED] http://www.overbyte.be - Original

Re: [twsocket] Telnet

2005-05-20 Thread Francois Piette
I'm using ICS - TWSocket and I wrote a server that listen on port, waiting a connection. A client telnet connect to this IP/port and the server execute another application to receive this connection. The server is a single receive of connections. Question 1 = Did you already make something

Re: [twsocket] Receive result of the first ReceiveStr() call twice -not resolved

2005-05-20 Thread Francois Piette
I still persist saying the you probably call the message pump directly or indirectly (for example your Log() function, or any component you use for display). I suggest you make a stripped down version of your program, just he bare minimum in a small project. If the problem persist with this

Re: [twsocket] [FTP Client] Binary Mode

2005-05-20 Thread Francois Piette
I have question about using Binary Mode. If I set FTPClient.Binary = True, my data is transmited in Ascii mode anyway. Because the server doesn't know you have changed the way data has to be transfered and FTP protocol default to ascii. You _must_ call method TypeSet to send the information

Re: [twsocket] Telnet

2005-05-20 Thread Francois PIETTE
access to source code. If you have a idea about this, i like it ! A code example about establish conection in another application is very good ! :) Thanks Arnoldo - Original Message - From: Francois Piette [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent

Re: [twsocket] [HELP] FTP Server possible bug ?

2005-05-20 Thread Francois PIETTE
Is this normal behavior or ? I can't tell you. And this would need too much analysis to give a good answer. Unfortunately I have not time (I'm busy with ICS-SSL). Sorry. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Guillaume MAISON [EMAIL PROTECTED] To: ICS

Re: [twsocket] Telnet

2005-05-21 Thread Francois PIETTE
This problem is not related to ICS. Please use a general purpose mailing list or newsgroup. For example http://www.elists.org/mailman/listinfo/delphi btw: You must serialize your requests that must pass thru those single user components. Contribute to the SSL Effort. Visit

Re: [twsocket] Telnet

2005-05-21 Thread Francois PIETTE
I'm not reinventing the wheel. I saw your samples programs about TWSocketServer too. My problem not is work with various instances of clients. My problem is when the client connect the server, the server redirect the connection to another application. I have the Socket.Accept, I run another

Re: Re[2]: [twsocket] Receive result of the first ReceiveStr() call twice -not resolved

2005-05-21 Thread Francois PIETTE
= 200 then AddGoodIP(Host); end; end; In your GetHTTPReponseStatusCode routine, you should check for valid HTTP reply in case you connect to a broken server or not a HTTP server. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Jack To: Francois

Re: [twsocket] Connection not closed in WebServer with IE

2005-05-21 Thread Francois PIETTE
; ClientCnx.AnswerString(Flags,'','',Header,Body); end; Bruno On 19/5/2005 15:02:20, Francois PIETTE ([EMAIL PROTECTED]) wrote: I don't know the context of this code. I find strange to have a local variable Flags. Have you looked at the WebServ delo provided with ICS ? See

Re: Re[2]: [twsocket] Connection not closed in WebServer with IE

2005-05-21 Thread Francois PIETTE
No, I don't have any exceptions - the program runs in the debugger with no errors. The strangest thing is that in Firefox, the connection closes fine all times, but in IE, it doesn't - that happens only for virtual docs. When you request a page, the connection closes ok on both browsers. As I

  1   2   3   4   5   6   7   8   9   10   >