Re: [twsocket] Threads with TWSocket

2006-11-02 Thread Francois Piette
> Are there any examples of using threads for client sockets? Do you mean at server side or at client side ? I understand you mean at server side. > Would this time reduce by using threads? I don't wait around for > anything, so I don't think that there will be time for other threads to > get in.

Re: [twsocket] Very slow attachment after then last ver. of ICS

2006-11-02 Thread Francois Piette
I would be interesting to have the /same/ application compiled withj the old SMTp version and compiled with the new SMTP version. Then run both applications on the same computer using the same datas and the same server. This way we can be sure that everything else is identical and only the componen

Re: [twsocket] Why is this list so slow?

2006-11-02 Thread Francois PIETTE
> Since two or three days mails posted to elist.org take one > and a half hour until I receive them back. That's no fun :( No idea. I haven't noticed a particular slow down. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please go

Re: [twsocket] OT: Is a server service paused when windows goes tostandby state?

2006-11-02 Thread Francois PIETTE
I think so. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [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 http://www.over

Re: [twsocket] Retrieving and Forwarding Emails / HttpCli in v6

2006-11-03 Thread Francois Piette
> I would like to retrieve emails from a pop3 mailbox and forward them > using smtp. I haven't used ICS for emails yet and wanted to see what > the process would be. > Here is what I want to do (synchronously): You are on the wrong track if your programming model is synchronous. ICS is asynchrono

Re: [twsocket] HTTP Server upload prgress bar

2006-11-03 Thread Francois PIETTE
Content-Length. -- 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: Friday, November 03, 2006 4:09 PM Subject: [twso

Re: [twsocket] HTTP Server upload prgress bar

2006-11-04 Thread Francois PIETTE
> Let me rephrase: while uploading the file, I want to show a progress bar > in > HTML but do not know how to do it right now. It needs to update every > second! You have a HTTP client (Is it a browser or a program with ICS HTTP client component) which upload a file to a HTTP server built using

Re: [twsocket] Why is this list so slow?

2006-11-04 Thread Francois PIETTE
>> I never noticed something like that. I think that _any_ mail now takes >> approximately 2 hours to process at elist.org. The delay started with >> 30 minutes or so and grew to current 2 hours. >> >> Is there anybody not having this problem? > Looking back through emails from the list I receiv

Re: [twsocket] HTTP Server upload prgress bar

2006-11-04 Thread Francois PIETTE
11:01 AM Subject: Re: [twsocket] HTTP Server upload prgress bar >I want the browser to display a upload progress bar while an HTTP file > upload is taking place. > > Thank you, > > SubZero > > - Original Message - > From: "Francois PIETTE" <[EMAIL PROTE

Re: [twsocket] Bandwidth counter for MT HTTPServer--what'sthefastestway?

2006-11-04 Thread Francois PIETTE
> I think using a single NIC, 64000 sockets could be possible for a proxy > since we can define the local port of the client connections the same, > right? 64K sockets if probably the upper limit on concurrent connections per interface. There are probably other limits which could be reached first

Re: [twsocket] HTTP Server upload prgress bar

2006-11-04 Thread Francois PIETTE
> : >I want the browser to display a upload progress bar while > : > an HTTP file upload is taking place. : > : while the browser is busy uploading the file, you may have another > browser > : window (a popup window) updated on a regular basis either purely locally > : using javascript (not sure y

Re: [twsocket] HTTP Server seems not to listen sometime

2006-11-05 Thread Francois PIETTE
401 error doesn't mean the server doesn't listen anymore but that authentication failed. Check the code you have in the OnAuthXYZ events. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From:

Re: [twsocket] Telnet, Ping and ARP

2006-11-05 Thread Francois PIETTE
> I'm looking for good ways to write a device configuration program using > ICS. The devices to be configured can be configured via Telnet and the > IP can be assigned via creating some arp entry for it and the first > packet sent to the device sets its address. > > What I'd like to do is: > > - se

Re: [twsocket] Is the elists server running?

2006-11-09 Thread Francois Piette
> Anybody out there anymore? Sure ! -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/list

Re: [twsocket] HTTP Server seems not to listen sometime

2006-11-09 Thread Francois Piette
age - From: "Igor Pokorny" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, November 06, 2006 11:53 PM Subject: Re: [twsocket] HTTP Server seems not to listen sometime > Hello Francois, > > I am sorry, I was mistaken. The error is 404 of course.

Re: [twsocket] Socket not sending SYN ACK - Help?

2006-11-09 Thread Francois Piette
> I'm really puzzled as to what could be going on here, and > have no idea how to begin to debug/fix it. Not easy to figure what the problem can be. First it is possible that the sniffer doesn't see all the packets. You could try using SocketSPY (see the "usermade" page at ICS website) to intercep

Re: [twsocket] Help on ICS's HTTP client component

2006-11-10 Thread Francois Piette
> I did implement a kind of time-out mechanism into my download thing: if > no event is triggered for a given amount (no state change, no data > received, no error) I consider the connection to be "timed out". This > gets my application back on the track working properly but this feels > like a hac

Re: [twsocket] SMTP Control: Email header appears in body of email

2006-11-11 Thread Francois PIETTE
There is no limitation I'm aware of in the component. I suspect the SERVER doesn't like the "to:" header line which is way too long. Are you able to send such an email using Outlook Express ? -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Jody Bowman" <[EMAIL

Re: [twsocket] Scanning Client Socket and Housekeeping from differentthread...

2006-11-11 Thread Francois PIETTE
> Question: Is there a thread safe pattern or approach for scanning the > client > sockets in the TWSocketServer collection from a different thread? Accessing the TWsocketServer.Client[] is /not/ thread safe. You /must/ access it only from the thread which created the TWSocketServer instance. -

Re: [twsocket] SMTP Control: Email header appears in body of email

2006-11-11 Thread Francois PIETTE
> This fix is for both V6 OverbyteIcsSmtpProt.pas as well as for v5 > SmtpProt.pas I have applyed the fixe to my source code. > You should turn on property FoldHeaders in order to keep the line length > within the range of maximum suggested length, that is only 75 characters. Shouldn't we turn

Re: [twsocket] Help on ICS's HTTP client component

2006-11-11 Thread Francois PIETTE
> So that's the end of it. It's the server that's causing my troubles... Good to know. > Is it worth using different time-out's for different stages of > connection? Ex: use a long timeout for DNS queryes, use shorter timeout > for the connection itself, use long timeouts for data transmission it

Re: [twsocket] Normal processing and abnormal(errors) processing forTHttpCli

2006-11-15 Thread Francois PIETTE
> I'm having good progress using the THttpCli component, but now I need to > have a few things cleared in my mind: > > (1) I noticed THttpCli component always triggers it's OnRequestDone > event when it finishes processing, no matter what caused this processing > to stop (successfully finished down

[twsocket] [OT] CodeGear is born

2006-11-15 Thread Francois PIETTE
Borland finally founded a subsidiary for his IDE division aka DevCo aka DTG. * Press Release: Borland forming CodeGear to focus exclusively on developer productivity This press release announces CodeGear - formerly Borland's Developer Tools Group. http://bdn.borland.com/article/33819 * Lette

Re: [twsocket] HttpCli & ContentRangeBegin

2006-11-17 Thread Francois PIETTE
> (1) What happens if I use ContnetRangeBegin and the server doesn't > support ranges (ex: if I'm downloading the results of a script)? Will I > end up with the whole document append to the already downloaded portion > of the document? You'll get an error. > (2) I noticed there's a AcceptRanges p

Re: [twsocket] Connection catch-22

2006-11-17 Thread Francois Piette
> When I call TWSocket's Send method, I'm getting error 10057, > "Send Socket is not connected" It is because you call Send immediately after Calling Connect. TWSocket is a NON-BLOCKING component. When you call Connect, you get control back immediately (the next line execute immediately) while the

Re: [twsocket] SmtpClient problem on disconnect

2006-11-17 Thread Francois Piette
In my opinion, the servers are not compliant with the standard. Indtead of tweaking the component, either simply colse the connection yourself or implement a timeout and close it later if the server don't do it quickly enough for you. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/

Re: [twsocket] Telnet problems

2006-11-17 Thread Francois Piette
I think TTnScript is the way to go. You can dynamically add/remove events according to which "screen" you detect. If you don't use TTnScript, has a look at his source code to understand how to get hand on the input stream to chack for data. I also uploaded a modified version of the components. It

Re: [twsocket] Pulling my hair out trying to receive a record

2006-11-18 Thread Francois PIETTE
> Ptr := PByte(X); > while iSize > 0 do begin >iSent := WSocket_AsClient.Send(Ptr, iSize); >if iSent > 0 then begin > Inc(Ptr, iSent); > Dec(iSize, iSent); > Continue; >end; Your record will be sent in one call to Send(). No need to do a loop ! Also no need to use an i

Re: [twsocket] HttpCli & ContentRangeBegin

2006-11-18 Thread Francois PIETTE
> Conclusion: I think data corruption might be a problem in some cases. > Notice how all Linux distributions include MD5 hashes for all downloads, > so they can be checked on the receiving end? This is not to detect data corrumption because of data transmission but to detect "man in the middle" a

Re: [twsocket] SmtpClient problem on disconnect

2006-11-18 Thread Francois PIETTE
> Thanks for all, I understand. Today I have tryed with a simple TCP client > emulating the SMTP protocol manually, and ALL works good, the server is > closing the connection. But again using the SmtpCli.pas component the > connection is not closed or OnRequestDone is not fired (this only happens >

Re: [twsocket] Shutdown(How: Integer)

2006-11-18 Thread Francois PIETTE
> When do I need, or would I want, to call Shutdown(), and what are the > ramifications of the different parameters that one can pass it. You use Shutdown() to initiate a gracefull close of a TCP session. Shutdown() send the signal to the remote side to close the connection. The remote side see

Re: [twsocket] Need example code for identifying a record beforeprocessing

2006-11-18 Thread Francois PIETTE
> All of the records have as their first member an Integer named OpCode > which > identifies itself as to which type of record it is, such as: > PInductionComplete = ^TInductionComplete; > TInductionComplete = packed record >OpCode: Integer; >Sort: Integer; >CarrierCount: Integer; >

Re: [twsocket] Multi-Threaded THttpServer?

2006-11-18 Thread Francois PIETTE
You defenitely doin't need multithread to throttle a connexion. See how it is done in the HTTP client component where you have a Bandwidth limitation feature. > I'm working on a HelpDesk application that should include a Chat function, > amongst other things. I want to do it all using HTTP only

Re: [twsocket] Flow control

2006-11-18 Thread Francois PIETTE
> If I'm trying to send random data at a speed faster than a TCP socket > can support, I don't understand what you want. Obviously you can't make a TCP session running fatser than a TCP session ! You can make it run slower but not faster ! Or maybe you want to use UDP which is faster than TCP b

Re: [twsocket] Multi-Threaded THttpServer?

2006-11-18 Thread Francois PIETTE
> (1) Not reply to the client until after 10 seconds (using a TTimer?). You > don't have to sleep. I'm sure the HTTP server has some kind of delayed > reply mechanism. Yes, you can reply later. Use hgSendMySelf. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [E

Re: [twsocket] Telnet problems

2006-11-18 Thread Francois PIETTE
> I already looked at TnScript 2-3 minutes, but I think this only works if > the Telnet session is designed like this: > > Step 1 - Step 2 - Step 3... so each step is a screen completely > different from each other. TTnScript associate events to strings detected in the data flow no matter how it

Re: [twsocket] Multi-Threaded THttpServer?

2006-11-19 Thread Francois PIETTE
>> (1) Not reply to the client until after 10 seconds (using a TTimer?). >> You >> don't have to sleep. I'm sure the HTTP server has some kind of delayed >> reply mechanism. You can put the client in a 'waiting' list and only >> send >> the reply after your timeout. >> > That would be plain sim

Re: [twsocket] Multi-Threaded THttpServer?

2006-11-19 Thread Francois PIETTE
>>> (1) Not reply to the client until after 10 seconds (using a TTimer?). >>> You >>> don't have to sleep. I'm sure the HTTP server has some kind of delayed >>> reply mechanism. >>> >> >> Yes, you can reply later. Use hgSendMySelf > Does it work like this? > > In my OnGetDocument I set Flags to h

Re: [twsocket] Flow control

2006-11-19 Thread Francois PIETTE
>> I don't understand what you want. Obviously you can't make a TCP >> session running fatser than a TCP session ! > > But I can supply data faster than the session can support. The data > might be coming from another application and I'm sending it over a slow > modem, so there must be flow contro

Re: [twsocket] HttpSvr & send picture stream

2006-11-19 Thread Francois PIETTE
I don't know what is the cause of your problem, but I'm sure you should have a look at AnswerStream method in the component. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "xmedia" <[EMAI

Re: [twsocket] Flow control

2006-11-19 Thread Francois PIETTE
>> Use event OnDataSent to control the flow, and to avoid grow of >> TWSocket's send buffer. > That is impossible for random data, unless an extra FIFO buffer is used > externally to TWSocket. I don't understand what you mean. You can use OnDataSent to fetch more data to send. > Trying to under

Re: [twsocket] Flow control

2006-11-19 Thread Francois PIETTE
> I have been working with ICS for some time and I had the same problem as > you, I have read the ICS source code and I saw that it doesn´t have this > flow control on send, what they have is the internal buffer where data is > stored and sent in background, so, for example, if you have a 56kbps >

Re: [twsocket] Flow control

2006-11-19 Thread Francois PIETTE
>> I have also implemented a property called MaxSendBuffer > > I think this needs to go into TWSocket. The component doesn't know what to do if too much data is sent. It is the application responsability to take any appropriate action: throw data away, pause the data source, overflow the buffer

Re: [twsocket] Flow control

2006-11-19 Thread Francois PIETTE
>>> I have also implemented a property called MaxSendBuffer >> >> I think this needs to go into TWSocket. > > Agreed. I don't. See my response to Angus. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or

Re: [twsocket] Flow control

2006-11-21 Thread Francois Piette
There is nothing to understand in the buffering. The buffer is automatic and only limited by available virtual memory. You get an exception when you run out of memory, just like you have - for example - when you run out of memory trying to add strings to a TStringList or anything else. That is just

Re: [twsocket] What might cause ICS to fail and we need to be aware of?

2006-11-21 Thread Francois Piette
> > I don't know of ANY component where it is safe to call the message pump from > > one of its event without knowing what happend. Even for a simple > > TButton.OnClick, you can get strange result if you call the message pump > > within the OnClick handler because the handler is re-entered. The pr

Re: [twsocket] Pulling my hair out trying to receive a record

2006-11-21 Thread Francois Piette
> < housekeeping needed to handle simultaneous clients.>> > > OK -- I was using the Client5 and Server5 demos as a starting point, where > both the sender and receiver are TWSocket components, are they not? Server5 is a very very old sample program... It use TWSocket as server socket. That's fine

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-21 Thread Francois Piette
> What could be the reason? Any idea? Cal WSAGetLastError to know the error code. -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Message - From: "Fastream Technologies" <[EMAIL P

Re: [twsocket] Need example code for identifying arecordbeforeprocessing

2006-11-21 Thread Francois Piette
> <<> OnDataAvailable() should only fire once for each record, because I am > > having > > the sender add a #126 (~) as the last byte of each record, and using > > LineMode with LineEnd = #126. > > WARNING: Since your record contains binary data, it could contains a #126 as > > part of the data. So

Re: [twsocket] Which TWSocketServer event to capture data sent?

2006-11-21 Thread Francois Piette
> << See TTcpSrvForm.WSocketServer1ClientConnect in TcpSrv1.pas source.>> > > When I try to use that code, I get an EInvalidCast error, specifically, > "EInvalidCast - Invalid class typecast" on this line: > > with Client as TTcpSrvClient do begin > > of the OnClientConnect() event handler. TWS

Re: [twsocket] How server can send data to clients ?

2006-11-21 Thread Francois PIETTE
> I have a TWSocketServer which is listening incoming clients connections. > Once a client is connected, the server send data to it. > Sometimes, I need this client to send command to the server. > Is it possible with ics components ? > If yes, how can I do it ? When the client is connected to the

Re: [twsocket] Which TWSocketServer event to capture data sent?

2006-11-21 Thread Francois PIETTE
> Which TWSocketServer event should I code to retrieve incoming data? None ! Data doesn't come from TWSocketServer but from one TWSocketClient (another TWSocket derived class) which is instanciated for each incomming connection. See how it works in TcpSrv sample program. > The two that fire whe

Re: [twsocket] Using Imap

2006-11-21 Thread Francois Piette
There is no IMAP component in ICS. Sorry. Maybe you'll write 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 (Multi-tier framework, freeware) http://www.overbyte.be - Origin

Re: [twsocket] How server can send data to clients ?

2006-11-21 Thread Francois PIETTE
> it's ok for the server part ? > is it the same method for the client part (to send data to server) ? No matter which side you are talking about. It is the same class - TWSocket - which handle the connection at both ends. So the methods, properties and events are the same. -- Contribute to the

Re: [twsocket] Need example code for identifying arecordbeforeprocessing

2006-11-21 Thread Francois PIETTE
> << Alternatively, you may send your data in text form instead of binary > form. > It takes more space but you have no problem with line end terminator (The > default CRLF is perfect) and you avoid problem with binary representation > of > data which DIFFER from one processor to another processor

Re: [twsocket] What might cause ICS to fail and we need to be aware of?

2006-11-21 Thread Francois Piette
> I noticed something. > > If in the OnDocData event handler of THttpCli I somehow re-enter the > "message pump" (that is, do something that calls > Application.HandleMessage or Application.ProcessMessages) the downloaded > file is corrupted! It took me a while to find this out and now I'm asking:

Re: [twsocket] Which TWSocketServer event to capture data sent?

2006-11-21 Thread Francois Piette
> If I add this line of code (from TcpSrv1.pas): > > PostMessage(Handle, WM_APPSTARTUP, 0, 0); > > To the FormShow() event, I get this error msg: > > "ESocketException - Error 10048 in function Bind Address already in use." Error 10048 occurs when you try to make a socket listening on a port alr

Re: [twsocket] Need example code foridentifyingarecordbeforeprocessing

2006-11-21 Thread Francois PIETTE
> << Right. But since you send integer data type, you WILL have #126 in the > binary data !>> > > In the infamous words of Kip Dynamite, "Dang it" > > Is there any LineEnd value I can set that will be safe to assume it won't > get sent in integer data? Defenitely none ! > Or will I need to pu

Re: [twsocket] Posting data to web server using THttpCli under usercontrol

2006-11-21 Thread Francois Piette
> I'm using THttpServer to send a document myself (using hgWillSendMySelf) > so I can keep sending new data without requiring a new connection. It > works just fine. Now I want to do the same the other way around: I want > to use THttpCli to continually "post" data, without closing the connection.

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-21 Thread Francois PIETTE
>I do not think the issue understood the same here and there. Why is > the Count = -1 then? When you call Send, passing a number of bytes and send is not able to send it without blocking and non-blocking mode is active, then send returns -1 to tell you it can't do what you asked. Nothing is sent

Re: [twsocket] Posting data to web server using THttpCliunder usercontrol

2006-11-21 Thread Francois PIETTE
> Using hgWillSendMySelf I noticed the proxy server immediately connects > the client to the server and the connection is kept open as long as I'm > sending data. If the proxy server does the same for the "long HTTP post" > it would provide a very valuable tool for what I need. I wouldn't base my

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-21 Thread Francois PIETTE
> Thanks for the pointer. The error is 10035. As you can see in the docs, it is WSAEWOULDBLOCK. This not a real error in a non-blocking environment. It just mean the winsock call would block to execute the task and non-blocking mode has been selected. -- Contribute to the SSL Effort. Visit http

Re: [twsocket] Connect, send and close

2006-11-22 Thread Francois Piette
> I need a "client" function that connects to server, > send data and close connection. You'd better design your application using the asynchronous mode which is the native mode for ICS. In short, use the events ! > Here, the result is false everytimes because the socket is never connected. This

Re: [twsocket] TWSocket sync send problem within ISAPI

2006-11-22 Thread Francois Piette
ected) > ) then > begin > Result := false; > end; > end; > > It works with debug compile when even NO breakpoints are set but does > not work with release build of the server. FYI, here is the hierarchy > of the classes: > > THttpConnect

Re: [twsocket] Posting data to web serverusing THttpCliunder usercontrol

2006-11-22 Thread Francois Piette
> I'll re-explain how my downstream (that is - HTTP > download) connection works. The client requests a document from my web > server. It does this going through the proxy. The server response (200 > OK), does NOT send an Content-length header and starts sending the > document very very slowly, but

Re: [twsocket] Posting data toweb serverusing THttpCliunder usercontrol

2006-11-22 Thread Francois Piette
Message - From: "Cosmin Prund" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, November 22, 2006 2:20 PM Subject: Re: [twsocket] Posting data toweb serverusing THttpCliunder usercontrol > Francois Piette wrote: > > This is proxy implementation dep

[twsocket] Mailing list usage

2006-11-22 Thread Francois PIETTE
To all subscribers: 1) Please do not use HTML or RTF messages in the list. Use only plain/text messages (by default Outlook uses HTML ! You must change the setting). When replying, be sure to use plain/text. If someone email to list accidently NOT in plain text and if you reply to it,

Re: [twsocket] Still "rassling" with sending and receiving

2006-11-22 Thread Francois PIETTE
> BTW, what is the netiquette regarding mailing lists as to snipping > previous > parts of the thread--should I cut out everything below this, or leave it > be > (leaving it be until I hear/read otherwise). You should keep just enough for everybody to understand what you are talking about. --

Re: [twsocket] TnScript Event Line Capture

2006-11-24 Thread Francois Piette
> I have a trigger event defined that executes a procedure. > > TnScript1.AddEvent(1, '10.10.30.','',[efIgnorecase], > EventProcessingRoutine); > > When the EventProcessingRoutine procedure runs in response to the > trigger is there a way to see/capture the text string/line that > triggered th

Re: [twsocket] Idea about forming a new mailing list

2006-11-24 Thread Francois PIETTE
> I propose to create a new ICS yahoo group As I already explained a lot of times I don't want to have a newsgroup, specially one that I don't control and which is polluted by anyone. The mailing list is the tool I like most. That's it. -- Contribute to the SSL Effort. Visit http://www.overbyte

Re: [twsocket] Idea about forming a new mailing list

2006-11-27 Thread Francois Piette
> Ok, what about a "third-party-ICS-tools" elists.org emailing list? Just setup your own mailing list or group or whatever you like where you can find a place. You don't need me for this. But defenitely ICS will not promote any product except thru the Google adsense program available from ICS webs

Re: [twsocket] FTP Question

2006-11-28 Thread Francois Piette
You probably forgot to call TypeSet after setting binary/text mode. 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://www.overbyte.be - Origi

Re: [twsocket] Listening UDP socket

2006-11-28 Thread Francois Piette
I think multicast has some kind of connection to the multicast group. It make sense to me that no connection is a problem for that connection to the group. But I have no real experience. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Angus Robertson - Magenta Syst

Re: [twsocket] ThreadDetach

2006-11-30 Thread Francois Piette
> My idea is that when this kind of request are received, I will select a > free thread from a pool of working threads that perform the conection to > the other server, and when the results arrives, Send() it to the client. This will not require a thread. The connection, sending and receiving are

Re: [twsocket] mail from when redirecting a mail

2006-12-03 Thread Francois PIETTE
I would use the original. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> To: Sent: Sunday, December 03, 2006 3:10 PM Subject: [twsocket] mail from when redirecting a mail > Hello, > > I have just written a small mail red

[twsocket] Writing documentation

2006-12-03 Thread Francois PIETTE
This little message to remind everyone that there is a wiki for ICS documentation: http://wiki.overbyte.be The wiki is authored by various contributors. Anyone can help ! If you want to help, please contact me by email. There is work for any level of ICS expertize: from non experize at all to ve

[twsocket] TWSocket support for HTTP proxy

2006-12-08 Thread Francois PIETTE
Jack has patched the latest beta (Downloaded about a week ago) to have TWSocket support http proxy tunneling. I've uploaded the file at http://www.overbyte.be/arch/dump/WSocketHttpProxy.zip for everyone review. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL

Re: [twsocket] TWSocket support for HTTP proxy

2006-12-09 Thread Francois PIETTE
Updated today. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: Sent: Friday, December 08, 2006 8:27 PM Subject: [twsocket] TWSo

Re: [twsocket] Throttling solution - Integrate Dan's throttler into ICS?

2006-12-09 Thread Francois PIETTE
Have you looked at HTTP client component ? I implemented throttling not so long ago. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Jack" <[EMAIL PROTECTED]> To: "ICS support mailing" S

Re: [twsocket] Freeze when using smtp after recreating its parentform

2006-12-11 Thread Francois Piette
> I normally just call .free never used .released. You have to use Release when called from an event handler which originate from the form you are freeing. Release make sure all curent events are processed. Free does an immediate free which will crash the application if one event handler is still

Re: [twsocket] TWSocket Digest, Vol 199, Issue 2

2006-12-11 Thread Francois PIETTE
> 2) I used threads because i even didn't know that TFTPCli can handle > concurrent connections. Sure i would try this method, but can you give me > some advices how to use this feature ? Or even maybe some samples ? Have a look at FtpAsy sample program (In ICS-V5 but also good for V6 provided yo

Re: [twsocket] TWSocket Digest, Vol 199, Issue 2 (Aleksey Potjomkin)

2006-12-12 Thread Francois PIETTE
> >For your next message, be sure to use a proper subject. Using a proper > >subject enhance your chances to get an answer. > > Is it OK now ? Not, it isn't. If you reply to a digest mode, change the subject line from "TWSocket Digest..." to the original subject of the message you reply to (A d

Re: [twsocket] FtpCli

2006-12-15 Thread Francois PIETTE
> I've used your ftp component and I had some problems regarding the > bin/asc transfer mode. Although your comments inside source code are > clear, it's not easy to realize that binary property is useless unless > you call the TypeSetAsync. > > I've made some changes in your code in order to enf

Re: [twsocket] How to uses many THttpCli simultaneously ?

2006-12-16 Thread Francois PIETTE
>LanceRequete(x); here error when x = 2 (see below) Which error ? Why not pass the HttpCli reference to KanceRequete instead of the index ? -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message

Re: [twsocket] How to uses many THttpCli simultaneously ?

2006-12-16 Thread Francois PIETTE
> Each THttpCli has a different Tag (1 to 5) to allow the > RequestDone know the THttpCli sender; No need to use the tag property. The "Sender" argument in each event handler is there just for that purpose: to know who triggered the event ! Of course you must cast sender argument to the appropri

Re: [twsocket] Ftp Client Send Error 426 using dialup connnection...

2006-12-16 Thread Francois PIETTE
Speed doesn't change anything. If it works with high speed connection, it has to work with a low speed connection as well. I suggest you tes using the FtpTst sample program delivered with ICS. Also update your ICS to the latest release or even the lates beta which contain all the fixes since las

Re: [twsocket] How to uses many THttpCli simultaneously ?

2006-12-16 Thread Francois PIETTE
n > raise EHttpException.Create(FReasonPhrase, FStatusCode); > > Thanks > JP > > Francois PIETTE a écrit : >>> Each THttpCli has a different Tag (1 to 5) to allow the >>> RequestDone know the THttpCli sender; >> >> No need to use the tag property. The

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-18 Thread Francois Piette
> One thing that troubles me is that smtp-components from other vendors works > fine also on the computers where ICS gets into trouble. > What is ICS doing that none of the other smtp components or applications are not? Dynamically load/unload WinSock when needed ? Contribute to the SSL Effort. V

Re: [twsocket] Oops - SSL only for FTP commands not data in my app

2006-12-18 Thread Francois PIETTE
> apparently I haven't enabled SSL for data transfers, only for the > initial connection and FTP commands. Some servers refuse data transfer, > saying that SSL is required, although an SSL connection has been set > up successfully. You should post your ICS-SSL questions to the ICS-SSL dedicated ma

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-19 Thread Francois Piette
> I tested the "NUMPROC=1" but with no difference I'm afraid... > > Well, perhaps we've done what we can for now. As I've said before: > Thank You very much for Your efforts! > I can not spend so many more days on this now (the same for > You I would imagine) I have not read the whole thread but I

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-21 Thread Francois Piette
> We have now discovered that: > Yes, the error do not arise when using WSocketForceLoadWinsock or having the > smtp component on the main form (or creating a dummy smtp component at > runtime and let it exist while the application is running). WSocketForceLoadWinsock immediately load the DLL. If

Re: [twsocket] OT: Merry Christmas

2006-12-26 Thread Francois Piette
> Hello: > I just wanted to wish Francois and everybody here in this list a very > happy Christmas and a prosperous new year! Thank you very much DZ. All my best whishes for the new year. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing l

Re: [twsocket] Safely save a binary file

2006-12-29 Thread Francois Piette
> it, but they are wrapped into headers: It is the so called MIME format which is used by browsers to send files. > The question is, how to get rid of this header and footer safely. Is > it enough just to delete first 4 lines and last 5 lines or it should > be done some other way? You should dec

Re: [twsocket] wsoNoReceiveLoop problem with bandwidth limiting

2006-12-31 Thread Francois PIETTE
> So, my question is, what is wsoNoReceiveLoop for wsoNoReceiveLoop tell the component to not loop until the message queue has no more FD_READ messages. When a loop is done (default) the component receive data as fast as possible. This maybe result is heavy load on the computer when the network

Re: [twsocket] wsoNoReceiveLoop problem with bandwidth limiting

2007-01-01 Thread Francois PIETTE
> I still have no clue why it's causing TCP stack to send > TCP zero window to the server... basically when the zero > window packet shows up, the connection will break. As far as I know, "TCP zero window" is sent when the comiter is not able to receive data anymore because the receive buffer is

Re: [twsocket] wsoNoReceiveLoop problem with bandwidth limiting

2007-01-02 Thread Francois PIETTE
>I finally found the problem. In OnDataAvailable, in one of > the cases Receive() did not read all the available data. I'm happy you found the problem ! > Just to add a bit to the description of the problem - the > problem only happens when wsoNoReceiveLoop is used. Wehn wsoNoReceiveLoop is used

Re: [twsocket] Data flow control

2007-01-06 Thread Francois PIETTE
You should have a look at the HTTP client component where I implemented the bandwidth control. Basically, the socket is Pause/Resumed every second or so. The pause duration dépend on the bandwidth allowed. At each pause, the actual thruput is evaluated et then the pause is computed to match the

Re: [twsocket] [PHISHING] - Troubles with using TPing inmultithreaded apps(DnsLook

2007-01-07 Thread Francois PIETTE
> I've download this sources. But there is using TICMP component, which > isn't > included into ICS. TICMP is not a component it is a class to encapsulate ICMP.DLL. It /is/ in ICS. It is the base of the TPing component. > But i'm talking about original ICS component TPing. To give the whole pi

[twsocket] Mailing list usage

2007-01-10 Thread Francois Piette
To all subscribers: 1) Please do not use HTML or RTF messages in the list. Use only plain/text messages (by default Outlook uses HTML ! You must change the setting). When replying, be sure to use plain/text. If someone email to list accidently NOT in plain text and if you reply to it,

Re: [twsocket] udp multicast multiple packages -> TWSocket bug?

2007-01-11 Thread Francois PIETTE
No time to look at your code. Sorry. Could you tell me why you need a thread for TWSocket ? It is asynchronous anyway. If you use a thread, be sure to create TWSocket from the execute method and to add a message pump in your thread. Also make sure to /not/ call the message pump from any of the e

  1   2   3   4   5   6   7   8   9   10   >