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

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

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

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

[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

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: >

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

[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

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

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] 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

[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

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

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

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

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

[twsocket] OnDataSent

2005-03-14 Thread Jack
whether the buffer was emptied between the calls, right? -- 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] udp broadcast on all interfaces?

2005-04-04 Thread Jack
there is a simple way. -- 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[2]: [twsocket] udp broadcast on all interfaces?

2005-04-05 Thread Jack
looks like the simple solution is to broadcast on all interfaces one by one with 0.0.0.0 and set the LocalAddr to each of the local IPs. I'll try if this works. Is there an easy way to get default gateway and subnet mask? -- Best regards, Jack Tuesday, April 5, 2005, 3:18:17 AM, you wrote

[twsocket] NOFORMS and TWSocketServer

2005-04-10 Thread Jack
s. If so, what's the difference of using it and TWSocketServer for server sockets? In other words, when should I use TWSocket and when to use TWSocketServer? -- Thanks, Jack -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailma

Re[2]: [twsocket] NOFORMS and TWSocketServer

2005-04-10 Thread Jack
, SysUtils, 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,

Re[2]: [twsocket] NOFORMS and TWSocketServer

2005-04-11 Thread Jack
Hello Arnaldo, Actually, I didn't modify anything in the projece settings. All of a sudden it grew from 111KB to 300KB+ :( -- Best regards, Jack Monday, April 11, 2005, 10:30:45 AM, you wrote: AB> Hi AB> Did you excluded debug information? See compiler and linker options AB>

Re[4]: [twsocket] NOFORMS and TWSocketServer

2005-04-12 Thread Jack
Hello Francois, Thanks for the reply. Yes, I manually deleted the dcu files before a re-compile. I also carefully check all the uses clauses. There are all together 3 source files. All used units are: Windows, Messages, SysUtils, WSocket, WsocketS; Still wondering... -- Best regards, Jack

Re[4]: [twsocket] NOFORMS and TWSocketServer

2005-04-12 Thread Jack
bject created. Only used. I even deleted all ICS dcu files. -- Best regards, Jack Tuesday, April 12, 2005, 5:51:31 AM, you wrote: FP> When you add NOFORMS to your project defined symbols (in project options), FP> you _must_ recompile everything. The compiler doesn't know which

Re[6]: [twsocket] NOFORMS and TWSocketServer

2005-04-14 Thread Jack
es of code though but I didn't add any other unites. -- Best regards, Jack Thursday, April 14, 2005, 1:52:17 PM, you wrote: AG> Francois PIETTE wrote: >>> I did some further testing. >>> >>> I commented out most of my code so it's not doing >>> anyt

Re[6]: [twsocket] NOFORMS and TWSocketServer

2005-04-14 Thread Jack
After reading Marco's message, I was curious about why wsockets.pas adds 60K of file size. When I looked at the file, I didn't really see NOFORM. Didn't see any unnecessary units either... MvdV> . MvdV> wsocketS imports unit controls without using it (or is it for the USE_SSL?) MvdV>

[twsocket] new httpcli exception

2005-05-01 Thread Jack
x27;. Process stopped. use Step or Run 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.e

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 late

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 authenti

[twsocket] Threaded client?

2005-05-17 Thread Jack
ssage handlers defined in the main form. (I could be wrong.) That's why I'm thinking of using a separate group of threads to do the server check. I wonder if there are samples for the client. -- Best regards, Jack -- To unsubscribe or change your settings for TWSocket mailing list p

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

2005-05-18 Thread Jack
M HTTP/1.0 200 Connection 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

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

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

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

[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

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(

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

[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

[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] 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] 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: 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] 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

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

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 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
, 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 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] 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

[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] 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] 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] 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] 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] 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, &

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

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

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] 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] 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] 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

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

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

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

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? --

[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

[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

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

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] 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] 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

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

[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

  1   2   >