Re: [twsocket] Adding gzip to HttpCli

2005-07-15 Thread Francois Piette
> So we should consider both. But there is a potential problem. The RFC > stated that more that one encoding can be applied to the body. We can > have then a mixed situation. Two compression applied one after the other or one compression for a part of the document and another one for the remainin

Re: [twsocket] Bind Exceptions

2005-07-15 Thread Francois Piette
The bind error is translated to an exception which says something like "error 10048 port already in use". -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Wesley Spadola" <[EMAIL PROTECTED]> To: Sent: Friday, July 15, 2005 3:12 AM Subject: [twsocket] Bind Exceptio

Re: [twsocket] Bind Exceptions

2005-07-15 Thread Wesley Spadola
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To you both, Darin and Wilfried - I'm aware that you cannot have two sockets listening on the same address, port and protocol. Sorry about that - yes, it was a 10048 error. I was wondering how I could catch that error programatically when my program

Re: [twsocket] No connection with TCP/IP over VPN

2005-07-15 Thread [EMAIL PROTECTED]
Thanks for the replies so far. I have sent a "debug" version of my software to the guy using it (regretfull I can't access the VPN from here ...) and he just returned me the result, which is not very helpful. When I issue a "CliSocket->Connect()", the state changes from 8 to 3 and after aprpo

Re: [twsocket] Bind Exceptions

2005-07-15 Thread Dan
Use Try and Except. Try WSocket1.Listen; Except On E: Exception Do Memo1.Lines.Add('Error when listening: '+E.Message); End; - Original Message - From: "Wesley Spadola" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Friday, July 15, 2005 11:11 AM Subject: Re: [twsocket] Bind Ex

Re: [twsocket] Bind Exceptions

2005-07-15 Thread Francois Piette
> Sorry about that - yes, it was a 10048 error. I was wondering how I > could catch that error programatically when my program runs. Try/except around your cann to Listen. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Wesley Spadola" <[EMAIL PROTECTED]> To: "I

Re: [twsocket] No connection with TCP/IP over VPN

2005-07-15 Thread Francois Piette
Do not use OnError event. Use structured exceptiuon handling (that is try/except/finally construct). It's the best way to handle errors. > Could it be that TWSocket is not waiting long enough for a connection > to be established? I have no clue on how to change that, if it is > possible in the fi

[twsocket] Using TTnEmulVT

2005-07-15 Thread Artem Antonov
Hello! I use TTnEmulVT, and have some question. Can I remove string "EmulVT" from the top line when I drag&drop this component on the form? In the source file (TNEMULVT.PAS) I didn't find this string. And can I use my own settings instead EditOptions method. How in this case this settings sh

[twsocket] error dnslookup

2005-07-15 Thread Develop ics
Hi I've a problem with TWSocket when i want to use dnslookup with an ip number. If i give it a host as parameter, it resolves it, but if i give it an ip number it does nothing, i saw in ICS's DnsLook.dpr sample project that if i pass an ip it resolves nice I've a list of hosts and IPs and I pas

Re: [twsocket] Adding gzip to HttpCli

2005-07-15 Thread Maurizio Lotauro
Scrive Francois Piette <[EMAIL PROTECTED]>: > > So we should consider both. But there is a potential problem. The RFC > > stated that more that one encoding can be applied to the body. We can > > have then a mixed situation. > > Two compression applied one after the other or one compression for a

Re: [twsocket] error dnslookup

2005-07-15 Thread Francois PIETTE
here's my sample sock := TWSocket.Create(nil); sock.DnsLookup(IP); sock.OnDnsLookupDone := func_dnslookupdone; You have to revert the last two lines ! The event handler must be defined _before_ calling the method (DnsLookup) that use it. -- [EMAIL PROTECTED] http://www.overbyte.be

Re: [twsocket] Using TTnEmulVT

2005-07-15 Thread Francois PIETTE
Can I remove string "EmulVT" from the top line when I drag&drop this component on the form? You must write the "Clear Screen" escape sequence at runtime. For example from the FormCreate event handler: TnEmulVT1.WriteStr(#27 + '[2J'); And can I use my own settings instead EditOptions metho

Re: [twsocket] error dnslookup

2005-07-15 Thread Develop ics
Francois PIETTE wrote: here's my sample sock := TWSocket.Create(nil); sock.DnsLookup(IP); sock.OnDnsLookupDone := func_dnslookupdone; You have to revert the last two lines ! The event handler must be defined _before_ calling the method (DnsLookup) that use it. -- [EMAIL PROTECTED