Re: [twsocket] fast data sending

2006-01-19 Thread Francois Piette
Each throttler requires a different interval. Perhaps a timer of 1ms interval can cover all? Triggering a timer (any kind) every milli second would waste a lot of CPU ! You should avoid short time period. See the bandwidth control I've implemented in HTTP client component. The mean bandwidth

Re: [twsocket] fast data sending

2006-01-19 Thread Francois Piette
Then you must divide memory with ram size occupied per socket, some reported about 6KB average, my own tests showed rather 10KB. Not counting all other processes/drivers that may allocate memory in this segment. FT Is this paged memory or non-paged also ok? Sorry I mistaken,

Re: [twsocket] Sending 7 Kilobytes of data

2006-01-19 Thread Francois Piette
Yes, I think I used TCP since I'm using TWSocketServer You should read TCP/UDP primer document available from support link at ICS website (http://www.overbyte.be). This document explain that TCP is a stream protocol which do not preserve datagram boundaries. You will receive all your data in

Re: [twsocket] [re] databuffer is cut off

2006-01-19 Thread Francois Piette
Use line mode to have TWSocket assemble lines for you. Also read message thread with subject Sending 7 kilobytes of data and read TCP/UDP primer document available from support page at my website. You'll understand how TCP transmission work and how to manage your receiver to get all data. --

Re: [twsocket] fast data sending

2006-01-19 Thread Francois Piette
I dont mean TTimer, because that TTimers are limited recourse, also each Timer create a hidden window also limited. So in your case using TTimers will get you probably out of recourses. I asked a few days ago to Francois if the TTimer code of HttpCli could be used in THttpConnection (web

Re: [twsocket] [re] databuffer is cut off

2006-01-19 Thread Wilfried Mestdagh
Hello Albert, Display(IntToStr(SendStr(Encrypt(AnswerData.CommaText) + #13#10))+'bytes sent'); CloseDelayed; There could be 2 problems here. The first is Close already mentioned by Arno, and the other is Encrypt. Are you sure #13#10 will be never in your encrypted string ? --- Rgds,

[twsocket] HTTP POST - SendStream With TMemoryStream

2006-01-19 Thread Opqrst Ghrst
Hello all, when I use Http Post Web to send file, if the file is bigger as 100mb. because content must has some FormField to post, I use MemorrStream write these information and FileStream. when I load to TMemoryStream it will cause my computer slow to build MemoryStream, can I use other mothods

[twsocket] v6 Installation under BCB6 (once again)

2006-01-19 Thread Fastream Technologies
Hello, We want to use ZLib1.dll in our projects. Is this what you (Angus) meant by built with dll or standalone? If that's not possible, we can live with the obj's. anyway, Could someone tell me the units that must be included in the package and the conditional defines needed? It still does

Re: [twsocket] v6 Installation under BCB6 (once again)

2006-01-19 Thread Angus Robertson - Magenta Systems Ltd
We want to use ZLib1.dll in our projects. Is this what you (Angus) meant by built with dll or standalone? This should be very obvious from a cursory examination of the FTP client source code: {$I IcsZlib.inc} IcsZlibHigh, {$IFDEF USE_ZLIB_OBJ} IcsZLibObj, {interface to access

Re: [twsocket] HTTP POST - SendStream With TMemoryStream

2006-01-19 Thread Paul
You should use a TFileStream instead of a TMemorystream. Paul - Original Message - From: Opqrst Ghrst [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, January 19, 2006 10:37 AM Subject: [twsocket] HTTP POST - SendStream With TMemoryStream Hello all,

Re: [twsocket] how to manage non line mode reception

2006-01-19 Thread Dod
Hello Wilfried, Thanx i'll check all this. Regards. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

回覆: Re: [twsocket] HTTP POST - SendStream With TMemoryStream

2006-01-19 Thread Opqrst Ghrst
hello I try to use FileStrem, it must has Free Space to create the same size of File,but it should be better than TmemoryStream, if teh file is biger. HttpCli-ContentTypePost=multipart/form-data; boundary=---7d5168231620eb2;

[twsocket] NTLM authentication reloaded

2006-01-19 Thread Tibor Csonka
Hello list, I've just ran into a small bug in NTLM authentication from HttpCli. There is a possibility that the user enters the username as domain\username. In this case HttpCli will send the username and the domain as the username, wich is not working (at least on IIS 6). The code looks like

Re: [twsocket] NTLM authentication reloaded

2006-01-19 Thread Paul
I did this in the HTTP authentication part not in the proxy. Can somebody confirm that in case of NTLM proxies, should work the same way? There are several ways a proxy auth is requested, it depends on the proxy settings and/or domain or even a workgroup. - username - domain\username - [EMAIL

Re: [twsocket] NTLM authentication reloaded

2006-01-19 Thread Tibor Csonka
I don't have a specific case where it isn't working. I was trying to fix things and I thought that someone knows how proxies/http servers are accecpting NTLM credentials. Paul wrote: I did this in the HTTP authentication part not in the proxy. Can somebody confirm that in case of NTLM proxies,

Re: [twsocket] HTTP POST - SendStream With TMemoryStream

2006-01-19 Thread Francois PIETTE
when I use Http Post Web to send file, if the file is bigger as 100mb. because content must has some FormField to post, I use MemorrStream write these information and FileStream. when I load to TMemoryStream it will cause my computer slow to build MemoryStream, can I use other mothods to resolve

Re: [twsocket] [re] databuffer is cut off

2006-01-19 Thread Francois PIETTE
Display(IntToStr(SendStr(Encrypt(AnswerData.CommaText) + #13#10))+'bytes sent'); CloseDelayed; There could be 2 problems here. The first is Close already mentioned by Arno, and the other is Encrypt. Are you sure #13#10 will be never in your encrypted string ? Well seen. -- Contribute to

回覆: Re: [twsocket] HTTP POST - SendStream With TMemoryStream

2006-01-19 Thread Opqrst Ghrst
thanks F.P. I See, but if the file is more than 1 GB, That will cost my too mush disk free space,I am confuse on this problem, because I must add Form Field Value information on the Head of the data and boundary end of data.it will be work by ContentTypePost=multipart/form-data mothod post. ---

[twsocket] using Api form with message loop

2006-01-19 Thread Paul
is it possible to create a form with a message loop with api and still use the http async methods ? This will shrink the total application size with almost 300K Paul -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket

Re: [twsocket] HTTP POST - SendStream With TMemoryStream

2006-01-19 Thread Francois PIETTE
but if the file is more than 1 GB, That will cost my too mush disk free space,I am confuse on this problem, because I must add Form Field Value information on the Head of the data and boundary end of data.it will be work by ContentTypePost=multipart/form-data mothod post. Then you must program

Re: [twsocket] HTTP POST - SendStream With TMemoryStream

2006-01-19 Thread Dan
Derive your own stream, probably best to be from TFilestream, but add a header property or something. Then override the seek and read methods (I think) to either seek into the file or into your header, and to read appropriate data. Dan - Original Message - From: Opqrst Ghrst [EMAIL

Re: [twsocket] using Api form with message loop

2006-01-19 Thread Wilfried Mestdagh
Hello Paul, Yes look at the examples. One of them (sorry forgot the name) create a form on the fly. But you can do same without form whitch will save probably some more memory. Create a class, create the ICS component you wants (whitch will create a hidden window), and execute the message pump

Re: [twsocket] HTTP POST - SendStream With TMemoryStream

2006-01-19 Thread Wilfried Mestdagh
Hello, I have started a new thread for this, because this one is a reply of Sending 7 Kilobytes of data whitch I was interested to follow and this one is not my 100% interest or knowledge. Please answer to the new thread only. Many modern email readers can sort on thread whitch is very nice, so

Re: [twsocket] using Api form with message loop

2006-01-19 Thread Paul
Hi Wilfried, that sounds like the console mode programs. I need to create a form myself, because it has to communicate with another program thru messages. Paul - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday,

Re: [twsocket] using Api form with message loop

2006-01-19 Thread Wilfried Mestdagh
Hello Paul, I may be understeanding you wrong, but you dont need a form to communicate with another program tru messages. You only need a form if you wants to have windows controls on it like buttons, memos etc.. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html

Re: [twsocket] [re] databuffer is cut off

2006-01-19 Thread albert drent
The CloseDelayed in the ondatasent was the solution THANKS!!! It's sooo logical I'm ashamed I didn't see that. The crlf in the encrypted data is taking care of, but you're right, this was an isue. Thank you all again. Albert -- To unsubscribe or change your settings for TWSocket mailing list

Re: [twsocket] using Api form with message loop

2006-01-19 Thread Wilfried Mestdagh
Hello Paul, You can't post a message to a program without a form Yes you can. The addresee only have to have a (hidden) window. To post or send a mesaage, you always need a handle to post the message Yes but the handle can be a (hidden) window. Not nececarly a TForm. Probably we are talking

Re: [twsocket] [re] databuffer is cut off

2006-01-19 Thread Wilfried Mestdagh
Hello albert, thanks for feedback. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, January 19, 2006, 21:51, albert drent wrote: The CloseDelayed in the ondatasent was the solution THANKS!!! It's sooo logical I'm ashamed I didn't

Re: [twsocket] using Api form with message loop

2006-01-19 Thread Paul
Probably we are talking the same :) I think so, but if the hidden form is created by WSocket, than where can I get the handle? Paul - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, January 19, 2006 10:06 PM

Re: [twsocket] using Api form with message loop

2006-01-19 Thread Paul
thanks Paul - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, January 19, 2006 10:25 PM Subject: Re: [twsocket] using Api form with message loop Hello Paul, WSocekt1.Handle --- Rgds, Wilfried

Re: [twsocket] NTLM authentication reloaded

2006-01-19 Thread Maurizio Lotauro
Scrive Tibor Csonka [EMAIL PROTECTED]: Hello list, I've just ran into a small bug in NTLM authentication from HttpCli. There is a possibility that the user enters the username as domain\username. In this case HttpCli will send the username and the domain as the username, wich is not

[twsocket] HttpCli + Timeout How To??

2006-01-19 Thread Macfly
Hi.. Friends.. How i implement a timeout control in HttpCli... I using HttpCli in sync mode, because i need to run it in Thread.. It's work fine, but in some(rare) cases httpcli freeze and no get any response... How i cancel httpcli get/post command? after started? Thanks

Re: [twsocket] NTLM authentication reloaded

2006-01-19 Thread Tibor Csonka
Maybe we should include the '@' also as separator. Paul wrote: Maurizio, different users can have different rights also. The only way I found sofar is detect a domain yourself and try all possible authentications possible and pick the one that succeeds. So if the user is in a domain, then try