Re: [twsocket] UDP Problem

2013-01-08 Thread Jack Moran
Never mind! I see now I had to add the WSocket from the pallet. On Jan 7, 2013, at 12:17 PM, Arno Garrels wrote: > Jack Moran wrote: >> That's probably my problem. How do I install ICS? I'm just adding >> files to the project. >> >> I'm using Delphi

Re: [twsocket] UDP Problem

2013-01-08 Thread Jack Moran
) and I get an out of range error. On Jan 7, 2013, at 12:17 PM, Arno Garrels wrote: > Jack Moran wrote: >> That's probably my problem. How do I install ICS? I'm just adding >> files to the project. >> >> I'm using Delphi XE2 and ICS Gold. > > Quo

Re: [twsocket] UDP Problem

2013-01-07 Thread Jack Moran
Thanks, Arno. I completely missed the read me file. It's working fine now. I appreciate the excellent support. On Jan 7, 2013, at 12:17 PM, Arno Garrels wrote: > Jack Moran wrote: >> That's probably my problem. How do I install ICS? I'm just adding >> files to

Re: [twsocket] UDP Problem

2013-01-07 Thread Jack Moran
That's probably my problem. How do I install ICS? I'm just adding files to the project. I'm using Delphi XE2 and ICS Gold. On Jan 7, 2013, at 11:42 AM, "Arno Garrels" wrote: > Jack Moran wrote: >> I am having a problem with OverbyteIcsUdpSend. On com

[twsocket] UDP Problem

2013-01-07 Thread Jack Moran
I am having a problem with OverbyteIcsUdpSend. On compilation I get a message "Field MainForm.Wsocket" does not have a corresponding component. Remove the declaration?" I say No, but then get an access violation at 0x00544c24 when it tries to set Wsocket. I've tried both the XE2 and XE3 versions

Re: [twsocket] ICS registration

2008-12-14 Thread Jack Moran
I will, Francois. Thanks. On Dec 14, 2008, at 7:48 AM, Francois PIETTE wrote: > As you subscribed to ICS support mailing list, you probably use > ICS. Good ! > But have you taken time to register your ICS copy ? > > ICS is freeware but to use it, you must register it. > Registration is very sim

Re: [twsocket] SessionClosed and close/shutdown

2008-08-11 Thread Jack
so trigger the event? For example, a browser using >> HTTP/1.0 often sends a request then does a shutdown(1). >> Will in this case the ICS server component get a SessionClosed >> event? What if it's a shutdown(0) or shutdown(2)? >> >> -- >> Best regar

Re: [twsocket] Delphi 4

2007-11-26 Thread Jack
Does D2007 still depend on .NET framework? D2005/2006 does depend on it even when it's run as Win32 personality. That slows things down quite a bit. This happens even together is not used. The IDE itself will load some .net modules. On Nov 26, 2007 7:56 AM, Francois Piette <[EMAIL PROTECTED]> wrot

[twsocket] Seeking OO design suggestions

2007-05-27 Thread Jack
r) // with event handler implementation ... end; TSmtpServerTest = class(TServerTester) // with event handler implementation ... end; I'm not very clear about which is better for this job. I'm open to other suggestions as well. -- Thanks! Jack -- To unsubscribe or chan

Re: [twsocket] Pause and Resume

2007-03-28 Thread Jack
MySocketOptions, in ASyncReceive() function. procedure TCustomWSocket.ASyncReceive(ErrCode: Word; bForceLoop : Boolean); begin ... if (not bForceLoop) and (wsoNoReceiveLoop in FComponentOptions) then break; ... end; Does this make sense to you? -- Best regards, Jack Monday, March 19

Re: [twsocket] Pause and Resume

2007-03-18 Thread Jack
Hello Wilfried and Francois, Would you consider patching my changes into ICS? -- Best regards, Jack Sunday, March 18, 2007, 5:17:12 AM, you wrote: > Hello Jack, > This seems OK. Indeed if you set wsoNoreceivedLoop in the > OnDataAvailable handler it will hot have an effect when

[twsocket] Pause and Resume

2007-03-17 Thread Jack
- [wsoNoReceiveLoop]); ... end; Please let me know if you see issues in this fix. -- Best regards, Jack -- 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] Some changes IFDEF-ed out?

2007-03-07 Thread Jack
, Jack -- 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] Pause, Resume and wsoNoReceiveLoop

2007-01-17 Thread Jack
Hello Wilfried, I'm not sure if I have understood you. I'm using one thread to do everything, and I'm calling Pause in OnClientDataAvailabe() on the client socket spawned by the server socket. Could you please explain a bit more? -- Best regards, Jack Tuesday, January 16, 2007,

[twsocket] Pause, Resume and wsoNoReceiveLoop

2007-01-16 Thread Jack
r and read them again but couldn't find what I'm doing wrong. Below are some excerpts from past emails. It could be compiled in one of the wiki pages. -- Best regards, Jack [From Francios] It (Pause) suppress async notification. So you don't receive events anymore but I/O continue

[twsocket] wsoNoReceiveLoop problem with bandwidth limiting

2007-01-01 Thread Jack
I finally found the problem. In OnDataAvailable, in one of the cases Receive() did not read all the available data. ===8<==Original message text=== Just to add a bit to the description of the problem - the problem only happens when wsoNoReceiveLoop is used. -- To unsub

[twsocket] Fwd: Re[2]: wsoNoReceiveLoop problem with bandwidth limiting

2007-01-01 Thread Jack
Just to add a bit to the description of the problem - the problem only happens when wsoNoReceiveLoop is used. - The connection is not closed but there's no data coming in. This typically happens after a few MByte of data has been transferred. - I log Pause and Resume calls so that I see th

Re: [twsocket] wsoNoReceiveLoop problem with bandwidth limiting

2007-01-01 Thread Jack
Hi Francois, > 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 full. And still as far as > I know this is not an error if it doesn't persist for too long. It is simply > part of the control flow in TCP protocol. > Sp

Re: [twsocket] wsoNoReceiveLoop problem with bandwidth limiting

2006-12-31 Thread Jack
Thanks Francois and Wilfried for the replies. 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. -- Best regards, Jack Sunday, December 31, 2006, 12:59:40 AM, you wrote: >

[twsocket] wsoNoReceiveLoop problem with bandwidth limiting

2006-12-30 Thread Jack
he problem remained. I then took the above line out, and left Pause and Resume in, I was able to complete the download. So, my question is, what is wsoNoReceiveLoop for (and why does it work in my case without setting it), and is it safe to not set it? -- Best regards, Jack -- To unsubscribe

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

2006-12-09 Thread Jack
i-threaded throttling mechanism won't be applicable. It sounds like a good idea to integrate Dan's throttler into ICS, if Dan and Francois agree. What do others say? Or, is there any easier ways to throttle the TWSocketClient class? -- Best regards, Jack -- To unsubscribe or ch

Re: [twsocket] TWSocket support for HTTP proxy

2006-12-09 Thread Jack
Hello Arno, Got it. Now I declare that my earlier comment on SSL and using a proxy is officially INVALID :) Although I am a contributor to the SSL project but I have to admit that I have never looked at the SSL code ;-p -- Best regards, Jack Saturday, December 9, 2006, 10:25:52 AM, you wrote

Re: [twsocket] TWSocket support for HTTP proxy

2006-12-09 Thread Jack
et; {$ELSE} TBaseParentWSocket = TCustomSocksWSocket; {$ENDIF} -- Best regards, Jack Saturday, December 9, 2006, 9:59:17 AM, you wrote: > Hello Jack, > [..] >> - socks and SSL support in existing ICS code is not done in the ideal >> way. As it is now, a socket is eit

[twsocket] TWSocket support for HTTP proxy

2006-12-09 Thread Jack
eme (quite some work :) - Once HTTP header is received, I'm reading one byte a time to read the rest of the reply, which is not the most efficient way. Since it's mostly reading from a buffer in memory, it should not be a big deal. This has no impact if HTTP proxy is not in use.

Re: [twsocket] Error 10058 when not sending?

2006-11-29 Thread Jack
Hello Wilfried, Thanks for your reply. Do you mean I should check the ErrCode in the event handlers, if none-zero, check LastError? When will BGException be fired exactly? I suppose it could happen even when no event handler is called? Jack > I think you have to check your event handlers

[twsocket] Error 10058 when not sending?

2006-11-28 Thread Jack
CP psh, fin, ack, etc. packets cause this problem? Could it be that the connection is closed before an ACK is sent back? It shouldn't be though because w/o getting a proper ACK, the server shouldn't be disconnecting. -- Best regards, Jack -- To unsubscribe or change your settings fo

Re: [twsocket] HttpCli & ContentRangeBegin

2006-11-21 Thread Jack
It is actually for data integrity as well (more than security, in my opinion.) When it comes to large file download, there might be corrupted bytes. Then this is more likely caused by HD errors then network errors. >> Conclusion: I think data corruption might be a problem in some cases. >> Notice

Re: [twsocket] Receive() returns -1

2006-11-09 Thread Jack
t bother to trace it down :) -- Best regards, Jack Thursday, November 9, 2006, 1:16:28 AM, you wrote: > Arno Garrels wrote: >> Jack wrote: >>> Hello all, >>> >>> I have a TCP socket client. In some cases, OnDataReceived() >> >> There's no such

[twsocket] Receive() returns -1

2006-11-08 Thread Jack
. Any idea why this is happening? In my particular case, the buffer is valid and has a size of 48 bytes. The application does this operation repeatedly. The first time, or the first few times always work well. -- Best regards, Jack -- To unsubscribe or change your settings for TWSocket

Re: [twsocket] Having a ICS TServiceApplication server survive a standby (slightly OT)

2006-10-30 Thread Jack
In applications you can handle the WM_POWERBROADCAST message but I'm not sure if it works with a service. -- Best regards, Jack Monday, October 30, 2006, 1:30:21 PM, you wrote: > Hello Fastream, > Could be XP bugs. I have done a few times a standby on XP and dont do it >

Re: [twsocket] A question about OnDataAvailable

2006-10-24 Thread Jack
e and concatenate the data. If RcvdCount is not reliable, I can probably use PeekData() but this is not very efficient because the data might be copied twice each by PeedData() and Receive(); -- Best regards, Jack Tuesday, October 24, 2006, 11:36:32 AM, you wrote: > Francois PIETTE wrote: >&

Re: [twsocket] A question about OnDataAvailable

2006-10-24 Thread Jack
I know I know :) I was trying to ask if I can get that info without calling Receive() and ReceiveStr() :) -- Best regards, Jack Tuesday, October 24, 2006, 12:37:37 AM, you wrote: > Receive() and ReceiveStr() that you would normally be calling in > OnDataAvailable returns the number of

[twsocket] A question about OnDataAvailable

2006-10-23 Thread Jack
Hi all, Is there a way to know how many bytes of data is available in the OnDataAvailable handler? -- Best regards, Jack -- 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] [OT] Borland Turbo

2006-09-07 Thread Jack
If you think about it, the whole point of having the free version is to get people interested and get beginners started. Now they have to create the components by code ... wise decision :) [OT] > I'm really sad for Borland another chance stupidly wasted... who > was the genius that "creates"

Re: [twsocket] OT; Delphi Turbo

2006-08-09 Thread Jack
ou can not access remote data. This is reasonable restriction for a student version. -- Best regards, Jack Wednesday, August 9, 2006, 12:41:09 PM, you wrote: > Angus Robertson - Magenta Systems Ltd wrote: >> Borland seems to be making some announcements today: > Looks like an answer to t

[twsocket] Fwd: UDP SendTo() sends two packets?

2006-05-04 Thread Jack
(I captured that with Ethereal.) Is there anything I'm not doing right? -- Best regards, Jack unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, WinSock, WSocket; type TForm1 = class(TForm) WSocket1:

[twsocket] UDP SendTo() sends two packets?

2006-05-02 Thread Jack
gards, Jack unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, WinSock, WSocket; type TForm1 = class(TForm) WSocket1: TWSocket; Memo1: TMemo; Label1: TLabel; Label2: TLabel; btnSend: TButton; edt

Re: [twsocket] Requesting an Ephemeral Port

2006-05-02 Thread Jack
Hello Widita, To my knowledge, Windows raw sockets let you capture packets and create new packets, but I don't think you can change or drop packets. Are you sure the original packets wasn't sent out? -- Best regards, Jack Tuesday, May 2, 2006, 8:34:30 AM, you wrote: > Right now

[twsocket] Fwd: SO_REUSEADDR doesn't work

2006-04-28 Thread Jack
Please ignore this email. It turned out to be a messed up tcp stack. The code works fine on other PC. -- Best regards, Jack This is a forwarded message From: Jack <[EMAIL PROTECTED]> To: twsocket@elists.org Date: Thursday, April 27, 2006, 4:48:45 PM Subject: SO_REUSEADDR doesn't

[twsocket] SO_REUSEADDR doesn't work

2006-04-27 Thread Jack
or. I wonder why I'm getting error 10048? I'm manually calling Connect from a button for testing, not in any of the twsocket message handlers. -- Best regards, Jack -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/tws

Re: [twsocket] httpcli does not work on dial-up connections?

2006-04-13 Thread Jack
Hmm. But windows firewall does not really block any outbound requests. It only blocks servers ... correct me if I'm wrong. Thursday, April 13, 2006, 10:14:59 AM, you wrote: >> Is there any chance that THttpCli doesn't work on dialup connections? >> In one of our (remote) environment, the user has

[twsocket] httpcli does not work on dial-up connections?

2006-04-13 Thread Jack
ror #10060)" with any web site. HttpTst sample works fine on highspeed on the same PC. Any idea why this is happening? -- Best regards, Jack -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our

Re: [twsocket] Error 10053?

2006-04-05 Thread Jack
ations (IE, etc.) just run fine. This has been puzzling me for a while ... -- Best regards, Jack Wednesday, April 5, 2006, 11:12:43 AM, you wrote: > Hello Jack, > 10053 is WSAECONNABORTED or in words: 'Software caused connection abort' > witch means that the OS has decided t

[twsocket] Error 10053?

2006-04-05 Thread Jack
, firefox, email, etc. on the same PC seem to work fine. This problem didn't happen before even on this PC. And a similar problem happens on some other PC as well. Any idea what can cause this? -- Best regards, Jack -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] ics under kylix ?

2006-03-20 Thread Jack
sed BSD socket API, it won't take much work porting it to Linux. Please correct me if I'm wrong. -- Best regards, Jack -- 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] send file to a http link or to a linux address using ICS

2006-03-16 Thread Jack
I find that the server side script may require different format. When I did upload to a PHP page, I had to hand craft the MIME content. It may not work with a non-PHP server side. Jack Thursday, March 16, 2006, 4:47:21 AM, you wrote: >> Is it possible to send a file from a windows machin

Re: [twsocket] Raw sockets doesn't capture broadcast UDP packets

2006-03-07 Thread Jack
I calls. Yeah. I actually compared the part of the code that creates the socket line by line and didn't notice any issues/major differences between the C code and TWSocket... Jack -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman

Re: [twsocket] Raw sockets doesn't capture broadcast UDP packets

2006-03-07 Thread Jack
Hello Arno, I know about the components. They use ICS raw sockets. Because ICS raw sockets does not capture broadcast packets, they don't either :( -- Best regards, Jack Tuesday, March 7, 2006, 9:58:59 AM, you wrote: > Jack wrote: >> Resending ... anyone has any idea why thi

[twsocket] Raw sockets doesn't capture broadcast UDP packets

2006-03-07 Thread Jack
'192.168.1.102'; WSocket1.Listen; -- Best regards, Jack ===8<===End of original message text=== -- 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] Raw sockets doesn't capture broadcast UDP packets

2006-03-06 Thread Jack
:= 'raw_ip'; WSocket1.Port := '0'; WSocket1.ComponentOptions := [wsoSIO_RCVALL]; WSocket1.Addr := '192.168.1.102'; WSocket1.Listen; -- Best regards, Jack -- To unsubscribe or change your s

Re: [twsocket] TWSocketServer halts when freed

2006-03-04 Thread Jack
Hello Wilfried, It's a little difficult to make a simple project out of it because the project is kind of complicated already. Maybe I'll do that when I'm not so busy. I wonder if you can think of anything that I can hack around just to see if it'll fix the problem? --

Re: [twsocket] TWSocketServer halts when freed

2006-03-04 Thread Jack
Hello Wilfried, It looks like it. But it could be SendMessageA called by WSACleanup, which waits until SendMessageA message is processed. Maybe this is because the target window and winproc has been destroyed by TCustomWSocket.Destroy? -- Best regards, Jack Saturday, March 4, 2006, 10:24:04 AM

Re: [twsocket] TWSocketServer halts when freed

2006-03-04 Thread Jack
Hello Wilfried, Thanks for the quick reply. No, I don't have a OnSessionClose or OnChangeState handler. Destroying the server object will abort the socket? Anyway, I also removed Abort() but the problem is still happening from time to time as before. -- Best regards, Jack Saturday, Ma

[twsocket] TWSocketServer halts when freed

2006-03-04 Thread Jack
alldword ptr [$4a5a14]; WSACleanup (WS2_32.dll) 0048cdca 1790 ret Anything I'm doing wrong? -- Best regards, Jack -- 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] OnDataAvailable called before shutdown with no data

2006-02-20 Thread Jack
Hello Francois, Thanks for the reply. I'll try that. So when I resume, instead of setting the option, I can still use the Resume() function to resume notification? -- Best regards, Jack Sunday, February 19, 2006, 2:20:54 AM, you wrote: >> I find that calling pause in OnSessionCon

Re: [twsocket] OnDataAvailable called before shutdown with no data

2006-02-18 Thread Jack
Hello Francois, I find that calling pause in OnSessionConnected() is effective. But calling pause in OnClientDataAvailable() does not work. OnClientDataAvailable() keeps getting fired. Any ideas? -- Best regards, Jack Sunday, January 22, 2006, 10:33:21 AM, you wrote: >>> Maybe

Re: [twsocket] OnDataAvailable called before shutdown with no data

2006-01-23 Thread Jack
n't want to expose FPaused? It seems safe to call Resume on all client socket without checking, am I right? Thanks, Jack -- 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] OnDataAvailable called before shutdown with no data

2006-01-22 Thread Jack
e a flat to check if a client socket is paused? > There is a flag FPaused but it is not exposed as a property. Oh, will you be able to expose it? I can modify the source code for now but I think it's useful when Pause and Resume is exposed. And sorry for the typo again. I meant fl

Re: [twsocket] OnDataAvailable called before shutdown with no data

2006-01-22 Thread Jack
. Is there a flat to check if a client socket is paused? > You could receive a lot of data before the other socket is opened. This is a > potential DOS attack. This is a good point. Thanks, Jack -- 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] OnDataAvailable called before shutdown with no data

2006-01-22 Thread Jack
ly retrieve data and send the data via remote socket. Or is it a bad idea to do so? An alternative way is to call Receive() and allocate memory and cache the data into memory before remote socket is available. But is this necessary? -- Best regards, Jack Sunday, January 22, 2006, 4:24:57 AM, y

[twsocket] OnDataAvailable called before shutdown with no data

2006-01-21 Thread Jack
x27;s OnDataAvailable is called. But if I call ReceiveStr(), I got data length 0. Is this a bug - because there's actually no data received? If it's not a bug, is there a way to tell if there is any data before calling ReceiveStr() or Receive()? -- Best regards, Jack -- To unsubscribe

Re: [twsocket] Process pooling for CGI

2006-01-12 Thread Jack
Guess this is OT, but check out FastCGI interface. > Hello, > Is this possible? I want to keep the PHP-cgi.exe process loaded in memory > for fast execution. Or is this what ISAPI can only do? > Regards, > SubZero -- To unsubscribe or change your settings for TWSocket mailing list please go

Re: [twsocket] ICS-V6 supported compilers

2005-12-28 Thread Jack
Hello Francois, > Delphi 5 is really too old. I know. But it's just as good, or better (smaller executable size and smaller memory footprint) than Delphi 7. I really like Delphi 5. And ICS works equally well on D5 as on any other versions of Delphi. It's a pity to drop it. > Delphi 2005 is too s

Re: [twsocket] ICS-V6 supported compilers

2005-12-28 Thread Jack
Hello Francois, I use Delphi 5 and Delphi 2005, neither is on your supported list :( Will V6 be completely replacing V5, or will it be a branch like SSL? -- Best regards, Jack Wednesday, December 28, 2005, 9:22:59 AM, you wrote: > I plan to support Delphi 7, Delphi 2006 (Win32 and .NET)

Re: [twsocket] Can ICS raw socket be used to sniff traffic?

2005-12-02 Thread Jack
d argument -- Best regards, Jack Friday, November 11, 2005, 12:19:00 PM, you wrote: >> I remember seeing an example using WinXP raw socket to >> sniff network traffic. Raw socket support has been added >> to ICS (but I have no experience with it yet.) I wonder if >> ICS raw socket

Re: [twsocket] Can ICS raw socket be used to sniff traffic?

2005-11-11 Thread Jack
Hello Angus, Your components seem to be exactly what I need. Thanks a lot! BTW, as you mentioned on your site, the raw socket demo only shows received packets, not the sent ones. -- Best regards, Jack Friday, November 11, 2005, 12:19:00 PM, you wrote: >> I remember seeing an example

[twsocket] Can ICS raw socket be used to sniff traffic?

2005-11-11 Thread Jack
ss of the default gateway. If not raw socket, any other ways to know that? I can probably use winpcap to sniff the traffic but I would not use it if I don't have to. -- Best regards, Jack -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.o

Re: [twsocket] [ICS] mmorpg capacity question

2005-11-01 Thread Jack
I wonder what the limitations on workstation versions are? A few hundreds? > You need to have a Windows _server_ version to support > 1000 simultaneous connections. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket V

Re: [twsocket] Downloading a webpage, including its pictures. How??

2005-10-29 Thread Jack
It actually takes more than one THttpCli.Get(). My understanding is that once you get the initial html, you have to parse it, get all the links, and request them, until you exhaust the links. Jack > Do you have any examples of how to use THttpCli for tasks like this? > /Perry > Arn

Re: [twsocket] Does THttpCli timeout?

2005-10-26 Thread Jack
Hello Wilfried, I wonder why would winsock even time out in this case? Isn't it legitimate to have a socket connected and doing nothing? -- Best regards, Jack Wednesday, October 26, 2005, 1:35:36 PM, you wrote: > Hello Jack, > real quick answer :) > correct ! > Winsock wil

Re: [twsocket] Does THttpCli timeout?

2005-10-26 Thread Jack
quick question. >> It is my understanding that THttpCli does not timeout. >> Say, it has connected to the web server and sent the request. >> But if the server doesn't send anything back, THttpCli will >> not timeout. Am I correct? >> -- >> Best regards, &

[twsocket] Does THttpCli timeout?

2005-10-26 Thread Jack
Hello, Real quick question. It is my understanding that THttpCli does not timeout. Say, it has connected to the web server and sent the request. But if the server doesn't send anything back, THttpCli will not timeout. Am I correct? -- Best regards, Jack -- To unsubscribe or change

Re: [twsocket] Async http, close or closeAsync?

2005-10-20 Thread Jack
CloseAsync() in OnRequestDone? What exactly is CloseAsync() for? -- Best regards, Jack Thursday, October 20, 2005, 2:39:26 AM, you wrote: >> I'm using httpcli in async mode. >> Should I use httpcli.Close() or httpcli.CloseAsync()? > CloseAsync > -- > Contribute to th

[twsocket] Async http, close or closeAsync?

2005-10-19 Thread Jack
hanks. -- Best regards, Jack -- 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] Does ICS support ...

2005-10-18 Thread Jack
7;ll be glad to hear about it :) -- Best regards, Jack Tuesday, October 18, 2005, 3:10:23 AM, you wrote: > Hello Jack, > I was just editing this faq whitch could answer one of your questions: > [Author] > Marco van de Voort > [Email] > [EMAIL PROTECTED] > [Answer] Since t

[twsocket] Does ICS support ...

2005-10-17 Thread Jack
-es. Because the functionality involves socket, I'm hoping that I can use ICS... -- Best regards, Jack -- 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] finding a local domain

2005-10-15 Thread Jack
I used sheerdns before. Very easy to set up. Works with cygwin dll. > Wilfried Mestdagh wrote: >> Hello Arno, >> >>> Forget it, it is shareware. >> >>Could not find a freeware one also. >>I really thought this would be a sooo simple to solve problem :( > Probably overkill for your custo

Re: [twsocket] BgException when a tcp client application is startedbyanother application

2005-09-29 Thread Jack
Hello Francois, So madExcept only catches the uncaught exception. I thought its caught exceptions first. Thanks for the explanation. -- Best regards, Jack Thursday, September 29, 2005, 3:14:44 AM, you wrote: >> I installed madExcept, and verified it working with a divided by 0 >>

Re: [twsocket] BgException when a tcp client application is started byanother application

2005-09-28 Thread Jack
, thanks a lot! -- Best regards, Jack Wednesday, September 28, 2005, 2:36:34 PM, you wrote: >> BgException: EConvertError: Invalid argument to date encode > You pass an invalid argument to some date encode function. This happend in > one of your socket event hanlder since it is

Re: [twsocket] BgException when a tcp client application is started byanother application

2005-09-28 Thread Jack
Hello Francois, I installed madExcept, and verified it working with a divided by 0 exception I created on purpose. It was caught by madExcept. However, the problem I had in BgException didn't raise any exception that madExcept was able to catch... -- Best regards, Jack Wednesday, Septemb

Re: [twsocket] BgException when a tcp client application is started byanother application

2005-09-28 Thread Jack
Hello Francois, I'll try that. Any idea why it doesn't happen when it's run from Windows Explorer? -- Best regards, Jack Wednesday, September 28, 2005, 2:36:34 PM, you wrote: >> BgException: EConvertError: Invalid argument to date encode > You pass an invalid argu

Re: [twsocket] BgException when a tcp client application is started by another application

2005-09-28 Thread Jack
Hello Wilfried, That's actually a print out of my BgException event handler :) Not in the source code. -- Best regards, Jack Wednesday, September 28, 2005, 2:34:42 PM, you wrote: > Hello Jack, > What is the offending line of code ? > I looked into the source and there i

[twsocket] BgException when a tcp client application is started by another application

2005-09-28 Thread Jack
encode Then the session is closed with ErrCode 0. No matter how it's started (ShellExecute, or CreateProcess, etc.) it always happens. I also tried starting from a .NET application and a Delphi application, same error. Any ideas? -- Best regards, Jack -- To unsubscribe or change your set

[twsocket] Fwd: Undeclared AllocateHwnd and DeallocateHWnd when built from command line

2005-09-26 Thread Jack
Problem resolved by adding "-b" (build all) ===8<==Original message text=== My project builds fine in D2005 IDE. When I try to build it from command line with dcc32.exe, I got the following errors: D:\Borland\VCLs\ICS\Delphi\Vc32\icsdefs.inc(386) D:\Borland\VCLs\ICS\Del

[twsocket] Undeclared AllocateHwnd and DeallocateHWnd when built from command line

2005-09-26 Thread Jack
uld not compile used unit 'httpprot.pas' Any ideas why this is happening and how I can fix it? -- Best regards, Jack -- 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] Fwd: A simple question: how to add custom http headers with httpcli?

2005-06-09 Thread Jack
Found the answer myself: OnBeforeHeaderSend ===8<==Original message text=== A simple question: how to add custom http headers with httpcli? I looked at the properties but did not find a string list property that seemingly fit this purpose... -- To unsubscribe or change

[twsocket] A simple question: how to add custom http headers with httpcli?

2005-06-08 Thread Jack
A simple question: how to add custom http headers with httpcli? I looked at the properties but did not find a string list property that seemingly fit this purpose... -- Best regards, Jack -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org

[twsocket] Http proxy tunneling?

2005-06-07 Thread Jack
proxy tunneling would probably take the same amount of effort, which is a little intimidating to me (time availability and the possibility of messing up the well tested code) So I'm asking to see if someone has actually implemented it, but did not put in Francois's distribution. -- Best regards

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

2005-06-02 Thread Jack
Hello Sean and Francois, Thanks for testing it. You two are right. The second OnDataAvailable does not contain the http header. My bad! I'm still curious though, why the exception (It doesn't give me an exception on Delphi 2005!) causes the data to be received twice. -- Best reg

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

2005-06-02 Thread Jack
source code, it'll appear only once. -- Best regards, Jack Thursday, June 2, 2005, 9:13:44 AM, you wrote: > No attachement here. But you can provide and URL on some server so that > anyone willing to have a > look at your code can. If you don't have any server, emailing

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

2005-06-02 Thread Jack
very simple now. I will email it to you. Please take a look when you have time. BTW, are attachments allowed here, or should I send you a private mail? -- Best regards, Jack Thursday, June 2, 2005, 6:43:30 AM, you wrote: > To avoid difficulties, you should first correctly wr

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

2005-06-01 Thread Jack
27; ', s); // Remove the trailing text if i > 0 then begin s := Copy(s, 1, i - 1); Result := StrToInt(s); end; end; end; -- Best regards, Jack >> I celebrated a little too early. I am getting this problem again >> in further testing after I changed Close(

[twsocket] TCP-based DNS resolution component?

2005-05-24 Thread Jack
Hi Francois, I didn't receive any reply so I went ahead and added tcp support in the DNSQuery component. If you are interested I can email you the updated file so that you can review the code and add to your distribution if you like. Thanks, Jack ===8<==Original mess

[twsocket] TCP-based DNS resolution component?

2005-05-23 Thread Jack
Hello all, I didn't see the option of choosing TCP in ICS's DNS client component. I suppose it's UDP only. I wonder if there is a component that resolves DNS with TCP? I didn't see one on the user made page. -- Best regards, Jack -- To unsubscribe or change your settings

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

2005-05-20 Thread Jack
Thanks Francois. I double-checked and didn't see any calls to ProcessMessages or ShowMessage, etc. I'll make a simplified version and send the code in private email. Jack Friday, May 20, 2005, 3:50:18 AM, you wrote: FP> I still persist saying the you probably call the me

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

2005-05-19 Thread Jack
eiveStr() result was duplicated. -- Best regards, Jack Thursday, May 19, 2005, 10:53:49 AM, you wrote: J> Francois, thanks! This fixed the problem! It's actually in the FAQ: J> - CloseDelayed J> Is in most cases the preferred way. It will post a message to J> itself to close the

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

2005-05-19 Thread Jack
Log(s); >> Close(); >> end; >> end; >> >> The destination server is a commercial http proxy server. >> I tried using #13#10 and #13#10#13#10, I different strings >> read back from ReceiveStr. But the second string includes >> the firs

Re[2]: [twsocket] Threaded client?

2005-05-18 Thread Jack
ome code in the main form unit. Is there any other way to defer the call to the Connect function so that it will happen after the code exits the OnSessionClosed event handler? I know I can create a hidden window in the owner object but I would avoid doing that if there is an easier way. -- Best regard

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

2005-05-18 Thread Jack
back from ReceiveStr. But the second string includes the first string in both cases. So it shouldn't be the server sending the string twice. BTW, I'm using the latest ICS. -- Best regards, Jack Wednesday, May 18, 2005, 3:31:32 PM, you wrote: WM> Hello Jack, WM> Can you show your On

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

2005-05-18 Thread Jack
n the OnDataAvailable handler. Any other reasons that you can think of that could cause this problem? My component verifies if a HTTP proxies supports CONNECT on port 443. I don't think HTTPCli component does what I want to do ... -- Best regards, Jack Wednesday, May 18, 2005, 3:59:06 PM, you

  1   2   >