Re: [twsocket] fast data sending
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 is limited. Instantaneous bandwidth is not limited. btw: If you want to discuss this bandwidth limitation, please jump to the other message thread. Avoid mixing topics. -- 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 -- 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] fast data sending
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, the allocated ram for socket is in non paged-memory, Wilfried said that only the data to send is buffered in pageable memory. Winsock use non-paged memory to store data to send/receive because this RAM has to be accessible from an interrupt driver and hardware DMA (Direct Memory Access) controller which doesn't work with virtual memory. TWSocket use memory from the application memory space, that is paged memory which is has a much higher limit: max 2GB or 3GB if you have the correct Windows version and corresponding hardware. btw: you need Delphi 2006 to benefit from 3GB systems because of limits in the memory manager found in previous Delphi versions (see this article: http://bdn.borland.com/article/0,1410,33416,00.html). -- 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 -- 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] Sending 7 Kilobytes of data
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 the correct order but the receiver will see it in different chunk sizes than what sender has sent. You need to design your protocol so that receiver knows how many data sender has sent. Either by sending fixed size structures, or sending a byte count in from of your data, or using a delimiter at the end of your data. -- 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 -- 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] [re] databuffer is cut off
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. -- 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 - Original Message - From: albert drent [EMAIL PROTECTED] To: twsocket@elists.org Sent: Wednesday, January 18, 2006 11:40 PM Subject: [twsocket] [re] databuffer is cut off I am using ICS, the components I use are TWSocketServer and TWSocket. I try to send a large string with Display(IntToStr(SendStr(Encrypt(AnswerData.CommaText) + #13#10))+'bytes sent'); CloseDelayed; The bytecount tells me that all is sent. But on the receive it is cut of... procedure TDM.CliSocketDataAvailable(Sender: TObject; Error: Word); var Len : Integer; var fn : textfile; begin { We use line mode, we will receive a complete line } Len := CliSocket.Receive(@Buffer, SizeOf(Buffer) - 1); assignfile(fn, 'd:\testen.txt'); append(fn); writeln(fn, IntToStr(SizeOf(buffer))+' '+IntToStr(Len)); closefile(fn); if Len = 0 then Exit; Buffer[Len] := #0; { Nul terminate } ProcessCommand(StrPas(Buffer)); { Pass as string } end; The buffersize is 10 so large enough. It's all based on the sample applications, but somehow data is cut-off if it exceeds something like 30k. In the source I read that it should be possible to transfer mb's of data in a single call, but as the only option I see now is to send it in chuncks of ??? size. albert -- 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 -- 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] fast data sending
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 server client connections) for thousands of clients and he said yes. Now you say it is not feasible just as I thought. A _single_ ttimer can be used for thousands of clients. TTimer would scan a list of timeout to check. What wilfried is saying is that a TTimer _per_ client is not good because timers are a limited resource. btw I think the limitation doesn't apply to W2K and above. -- 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 -- 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] [re] databuffer is cut off
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, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- 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
[twsocket] HTTP POST - SendStream With TMemoryStream
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 to resolve this problem? ___ YM - 離線訊息 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。 http://messenger.yahoo.com.hk -- 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
[twsocket] v6 Installation under BCB6 (once again)
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 not work here! Regards, SZ -- 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] v6 Installation under BCB6 (once again)
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 ZLIB C OBJ files} {$ELSE} IcsZLibDll, {interface to access zLib1.dll} {$ENDIF} So to use a DLL, you undefine {$DEFINE USE_ZLIB_OBJ} in IcsZlib.inc, and the correct units are brought in automatically. If you want ZLib1.dll instead of ZLib.dll, I believe you need another define in the inc file {$IfDef Def_ZLib1Dll}, but all the DLL stuff came from a different source and my testing was very brief. I believe it only supports an old, buggy ZLIB as well, although could doubtless be improved. None of the ZLIB code was tested with BCB, it is a beta version so you will need to make any modification necessary for compatibility, since few others seem to use BCB. Angus -- 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
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, 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 this problem? ___ YM - 離線訊息 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。 http://messenger.yahoo.com.hk -- 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 -- 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] how to manage non line mode reception
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
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; Buf1=-7d5168231620eb2\r\nContent-Disposition: form-data; name=fname+; filename=+key+\r\nContent-Type: application/octet-stream\r\n\r\n; Buf2==-7d5168231620eb2-- SendStream=new TFileStream(temp, fmCreate); SendStream-Size=0; SendStream-WriteBuffer(Buf1.c_str(), Buf1.Length()); TFileStream* ms=new TFileStream(Filepath.c_str(), fmOpenRead); SendStream-CopyFrom(ms,ms-Size); delete ms; SendStream-WriteBuffer(Buf2.c_str(), Buf2.Length()); SendStream-Seek(0, soFromBeginning); --- Paul [EMAIL PROTECTED] 說: 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, 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 this problem? ___ YM - 離線訊息 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。 http://messenger.yahoo.com.hk -- 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 -- 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 ___ YM - 離線訊息 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。 http://messenger.yahoo.com.hk -- 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
[twsocket] NTLM authentication reloaded
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 this: Result := NtlmGetMessage3('', Hostname, FUsername, FPassword, FNTLMMsg2Info.Challenge); where NtlmGetMessage3 is defined as: function NtlmGetMessage3(const ADomain, AHost, AUser, APassword: String; AChallenge: TArrayOf8Bytes): String; This function will generate the last NTLM message containing the authentication information. The call, as you can see set the domain to empty string in all cases but if the user supplies the usernames in the manner I've mentioned before this is not correct. A fast dirty fix which I made is: DomPos := Pos('\', FUsername); if DomPos0 then begin Dom := Copy(FUsername, 1, DomPos-1); UName := Copy(FUsername, DomPos + 1, Length(FUsername)-DomPos); end else begin Dom := ''; UName := FUsername; end; Result := NtlmGetMessage3(Dom, Hostname, UName, FPassword, FNTLMMsg2Info.Challenge); 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? Best regards, Tibor Csonka -- 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] NTLM authentication reloaded
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 PROTECTED] You should try them all yourself and select the one that works Paul - Original Message - From: Tibor Csonka [EMAIL PROTECTED] To: twsocket@elists.org Sent: Thursday, January 19, 2006 5:32 PM Subject: [twsocket] NTLM authentication reloaded 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 this: Result := NtlmGetMessage3('', Hostname, FUsername, FPassword, FNTLMMsg2Info.Challenge); where NtlmGetMessage3 is defined as: function NtlmGetMessage3(const ADomain, AHost, AUser, APassword: String; AChallenge: TArrayOf8Bytes): String; This function will generate the last NTLM message containing the authentication information. The call, as you can see set the domain to empty string in all cases but if the user supplies the usernames in the manner I've mentioned before this is not correct. A fast dirty fix which I made is: DomPos := Pos('\', FUsername); if DomPos0 then begin Dom := Copy(FUsername, 1, DomPos-1); UName := Copy(FUsername, DomPos + 1, Length(FUsername)-DomPos); end else begin Dom := ''; UName := FUsername; end; Result := NtlmGetMessage3(Dom, Hostname, UName, FPassword, FNTLMMsg2Info.Challenge); 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? Best regards, Tibor Csonka -- 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 -- 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] NTLM authentication reloaded
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, 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 PROTECTED] You should try them all yourself and select the one that works Paul - Original Message - From: Tibor Csonka [EMAIL PROTECTED] To: twsocket@elists.org Sent: Thursday, January 19, 2006 5:32 PM Subject: [twsocket] NTLM authentication reloaded 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 this: Result := NtlmGetMessage3('', Hostname, FUsername, FPassword, FNTLMMsg2Info.Challenge); where NtlmGetMessage3 is defined as: function NtlmGetMessage3(const ADomain, AHost, AUser, APassword: String; AChallenge: TArrayOf8Bytes): String; This function will generate the last NTLM message containing the authentication information. The call, as you can see set the domain to empty string in all cases but if the user supplies the usernames in the manner I've mentioned before this is not correct. A fast dirty fix which I made is: DomPos := Pos('\', FUsername); if DomPos0 then begin Dom := Copy(FUsername, 1, DomPos-1); UName := Copy(FUsername, DomPos + 1, Length(FUsername)-DomPos); end else begin Dom := ''; UName := FUsername; end; Result := NtlmGetMessage3(Dom, Hostname, UName, FPassword, FNTLMMsg2Info.Challenge); 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? Best regards, Tibor Csonka -- 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 -- 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
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 this problem? If you use TMemoryStream, then your 100MB of data is loaded onto RAM which can be slow. Use another kind of TStream, for example a TFileStream which store his data in a disk file instead of RAM. -- 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.overbyte.be
Re: [twsocket] [re] databuffer is cut off
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 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.overbyte.be
回覆: Re: [twsocket] HTTP POST - SendStream With TMemoryStream
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. --- Francois PIETTE [EMAIL PROTECTED] 說: 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 this problem? If you use TMemoryStream, then your 100MB of data is loaded onto RAM which can be slow. Use another kind of TStream, for example a TFileStream which store his data in a disk file instead of RAM. -- 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.overbyte.be ___ YM - 離線訊息 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。 http://messenger.yahoo.com.hk -- 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
[twsocket] using Api form with message loop
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 Visit our website at http://www.overbyte.be
Re: [twsocket] HTTP POST - SendStream With TMemoryStream
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 a little bit trickier: Create your own TStream derived class. The HTTP component will read data thru this stream interface. In the implementation, you are free to add your form field values and then read the file from disk and then add the end of data. btw: You name in the mail message is very strange seen from here. I read Opqrst Ghrst. Probably you use some chinesee character set ? Maybe you should use US-ascii characters instead of unicode. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Opqrst Ghrst [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, January 19, 2006 8:16 PM Subject: 回覆: Re: [twsocket] HTTP POST - SendStream With TMemoryStream 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. --- Francois PIETTE [EMAIL PROTECTED] 說: 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 this problem? If you use TMemoryStream, then your 100MB of data is loaded onto RAM which can be slow. Use another kind of TStream, for example a TFileStream which store his data in a disk file instead of RAM. -- 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.overbyte.be ___ YM - 離線訊息 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。 http://messenger.yahoo.com.hk -- 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 -- 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
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 PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, January 19, 2006 7:16 PM Subject: 回覆: Re: [twsocket] HTTP POST - SendStream With TMemoryStream 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. --- Francois PIETTE [EMAIL PROTECTED] 說: 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 this problem? If you use TMemoryStream, then your 100MB of data is loaded onto RAM which can be slow. Use another kind of TStream, for example a TFileStream which store his data in a disk file instead of RAM. -- 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.overbyte.be ___ YM - 離線訊息 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。 http://messenger.yahoo.com.hk -- 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 -- 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] using Api form with message loop
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 from the TWSocket it uses :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, January 19, 2006, 20:39, Paul wrote: 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 Visit our website at http://www.overbyte.be
Re: [twsocket] HTTP POST - SendStream With TMemoryStream
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 please if you do not have such email reader try to respect this :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, January 19, 2006, 21:22, Dan wrote: 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 PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, January 19, 2006 7:16 PM Subject: 回覆: Re: [twsocket] HTTP POST - SendStream With TMemoryStream 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. --- Francois PIETTE [EMAIL PROTECTED] 說: 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 this problem? If you use TMemoryStream, then your 100MB of data is loaded onto RAM which can be slow. Use another kind of TStream, for example a TFileStream which store his data in a disk file instead of RAM. -- 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.overbyte.be ___ YM - 離線訊息 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。 http://messenger.yahoo.com.hk -- 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 -- 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] using Api form with message loop
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, January 19, 2006 9:31 PM Subject: Re: [twsocket] using Api form with message loop 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 from the TWSocket it uses :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, January 19, 2006, 20:39, Paul wrote: 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 Visit our website at 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.overbyte.be
Re: [twsocket] using Api form with message loop
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 http://www.mestdagh.biz Thursday, January 19, 2006, 21:35, Paul wrote: 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, January 19, 2006 9:31 PM Subject: Re: [twsocket] using Api form with message loop 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 from the TWSocket it uses :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, January 19, 2006, 20:39, Paul wrote: 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 Visit our website at 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.overbyte.be
Re: [twsocket] [re] databuffer is cut off
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 please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] using Api form with message loop
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 the same :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- 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] [re] databuffer is cut off
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 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 please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] using Api form with message loop
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 Subject: Re: [twsocket] using Api form with message loop 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 the same :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- 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 -- 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] using Api form with message loop
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 [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, January 19, 2006, 22:11, Paul wrote: 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 Subject: Re: [twsocket] using Api form with message loop 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 the same :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- 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 -- 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 -- 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] NTLM authentication reloaded
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 working (at least on IIS 6). [...] The call, as you can see set the domain to empty string in all cases but if the user supplies the usernames in the manner I've mentioned before this is not correct. [...] 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? I have a strange situation. A customer use ISA server for proxy and has enabled the NTLM authentication. To authenticate some user must include the domain (domain\username) and some other user must not include it (I mean, if they include the domain they will not authenticated). I don't have investigated what is the difference between these users. You have a similar situation with IIS? I mean, if you don't include the domain you will be authenticated? Bye, Maurizio. This mail has been sent using Alpikom webmail system http://www.alpikom.it -- 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
[twsocket] HttpCli + Timeout How To??
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 in advance.. Mac - Yahoo! Photos Showcase holiday pictures in hardcover Photo Books. You design it and well bind it! -- 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] NTLM authentication reloaded
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 logon with username domain\username [EMAIL PROTECTED] Paul - Original Message - From: Maurizio Lotauro [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, January 20, 2006 1:47 AM Subject: Re: [twsocket] NTLM authentication reloaded 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 working (at least on IIS 6). [...] The call, as you can see set the domain to empty string in all cases but if the user supplies the usernames in the manner I've mentioned before this is not correct. [...] 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? I have a strange situation. A customer use ISA server for proxy and has enabled the NTLM authentication. To authenticate some user must include the domain (domain\username) and some other user must not include it (I mean, if they include the domain they will not authenticated). I don't have investigated what is the difference between these users. You have a similar situation with IIS? I mean, if you don't include the domain you will be authenticated? Bye, Maurizio. This mail has been sent using Alpikom webmail system http://www.alpikom.it -- 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 -- 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