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 arno.garr...@gmx.de 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. Quoted from ReadMe7.txt: {code

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 arno.garr...@gmx.de 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. Quoted from

[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] 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 arno.garr...@gmx.de wrote: Jack Moran wrote: I am having a problem with OverbyteIcsUdpSend. On compilation I get a message

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 arno.garr...@gmx.de wrote: Jack Moran wrote: That's probably my problem. How do I install ICS? I'm just adding files to the project

[twsocket] Seeking OO design suggestions

2007-05-27 Thread Jack
) // 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 change your settings

Re: [twsocket] Pause and Resume

2007-03-28 Thread Jack
of 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 there is still

[twsocket] Pause and Resume

2007-03-17 Thread Jack
]); ... 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, 6:48:06 AM, you

[twsocket] Pause, Resume and wsoNoReceiveLoop

2007-01-16 Thread Jack
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 as much as winsock can, for example filling his receive buffer

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. Speaking

[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

[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

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: So, my

[twsocket] wsoNoReceiveLoop problem with bandwidth limiting

2006-12-30 Thread Jack
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 or change your

[twsocket] TWSocket support for HTTP proxy

2006-12-09 Thread Jack
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. -- Best regards, Jack

Re: [twsocket] TWSocket support for HTTP proxy

2006-12-09 Thread Jack
} 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 either an SSL socket or a socks socket

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

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

2006-12-09 Thread Jack
. 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 change your settings for TWSocket mailing list please goto http

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
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 for TWSocket mailing list please goto http

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
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 event in ICS named OnDataReceived. gets fired for multiple times with ErrCode = 0

[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 again as some services

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 bytes

Re: [twsocket] A question about OnDataAvailable

2006-10-24 Thread Jack
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: I know I know

[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 the

Re: [twsocket] OT; Delphi Turbo

2006-08-09 Thread Jack
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 the Express versions of M

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

2006-05-04 Thread Jack
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

[twsocket] UDP SendTo() sends two packets?

2006-05-02 Thread Jack
, 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; edtDstIP

[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 work ===8

[twsocket] SO_REUSEADDR doesn't work

2006-04-27 Thread Jack
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/twsocket Visit our

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

2006-04-13 Thread Jack
) 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 website at http://www.overbyte.be

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 a

Re: [twsocket] Error 10053?

2006-04-05 Thread Jack
, 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 to abort the connection due

Re: [twsocket] ics under kylix ?

2006-03-20 Thread Jack
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 machine from

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

2006-03-07 Thread Jack
.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

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 this is happening

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

2006-03-07 Thread Jack
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/listinfo/twsocket Visit our website at http

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

2006-03-06 Thread Jack
'; WSocket1.Port := '0'; WSocket1.ComponentOptions := [wsoSIO_RCVALL]; WSocket1.Addr := '192.168.1.102'; WSocket1.Listen; -- Best regards, Jack -- To unsubscribe or change your settings for TWSocket mailing list please goto

[twsocket] TWSocketServer halts when freed

2006-03-04 Thread Jack
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] 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, March 4

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, 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? -- Best regards, Jack

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 use Pause/Resume

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

2006-01-23 Thread Jack
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
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, you wrote: Instead

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

2006-01-22 Thread Jack
? 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 flag, not flat. You got that right, too :) Jack -- To unsubscribe or change

[twsocket] OnDataAvailable called before shutdown with no data

2006-01-21 Thread Jack
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 or change your

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 goto

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) and C

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

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

2005-12-02 Thread Jack
-- 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 can be used to sniff traffic sent

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

2005-11-11 Thread Jack
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.org/mailman

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 Arno Garrels wrote

[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 your

Re: [twsocket] Does THttpCli timeout?

2005-10-26 Thread Jack
. 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 your settings for TWSocket mailing

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 will timeout after

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 the SSL Effort. Visit http

[twsocket] Async http, close or closeAsync?

2005-10-19 Thread Jack
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
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 there seem to be quite some confusion about

[twsocket] Does ICS support ...

2005-10-17 Thread Jack
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 customers?

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 argument to some date encode

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, September 28

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

2005-09-28 Thread Jack
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 trapped by BgException. I

[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
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, Jack

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

2005-06-02 Thread Jack
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 write your

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

2005-06-02 Thread Jack
#246), Date: Thu, 02 Jun 2005 10:40:24 GMT/font If you comment out the StrToInt() line in the 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

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

2005-06-01 Thread Jack
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() to CloseDelayed(); The difference is, I'm not getting result

[twsocket] TCP-based DNS resolution component?

2005-05-25 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 message text

[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 for TWSocket mailing

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 message pump FP directly

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

2005-05-19 Thread Jack
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 TWSocket. This means that the socket

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

2005-05-18 Thread Jack
established Proxy-agent: Proxy+ 3.00 It seems that, somehow the first ReceiveStr() didn't remove the data from the buffer. Or am I missing anything? -- Best regards, Jack -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket

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

2005-05-18 Thread Jack
() in 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 wrote: FP

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

2005-05-18 Thread Jack
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 OnDataAvailable handler ? WM

Re[2]: [twsocket] Threaded client?

2005-05-18 Thread Jack
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 regards, Jack

[twsocket] new httpcli exception

2005-05-01 Thread Jack
to continue. Were there any changes introduced in recent versions of httpcli component? Or, any ideas what this exception is about? -- Best regards, Jack -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our

Fwd: [twsocket] new httpcli exception

2005-05-01 Thread Jack
It seems that now THttpCli.URL now requires prefix of http:// or https://. I used to use url without those and it seems to have worked with previous versions of httpcli. ===8==Original message text=== Hi Francois and all, I recompiled an old project of mine with the

Re[2]: [twsocket] new httpcli exception

2005-05-01 Thread Jack
Hello Francois, In one case, I'm using a proxy. In another case, I'm not. The moment I added http://; before the URL, it worked again. -- Best regards, Jack Sunday, May 1, 2005, 6:10:36 AM, you wrote: FP Are you using a proxy or not ? FP Are you using authentication ? FP -- FP [EMAIL

Re[2]: [twsocket] NOFORMS and TWSocketServer

2005-04-10 Thread Jack
, Messages, WSocket, WsocketS; I still can not make the file smaller than 300+KB :( BTW Wilfried, it seems that TWSocket does support more than 1 client. The ConSrv sample is a telnet server and I tried with 2 telnet clients, both worked fine :) -- Best regards, Jack Sunday, April 10, 2005, 1:54:18 PM