Re: [twsocket] [HELP] Question...

2006-02-21 Thread Guillaume MAISON
Arno Garrels a écrit :
> Guillaume MAISON wrote:
>> In that case, the property SocksLevel should be initialized at the
>> component creation with a value. Which is not the case in the 
>> source code... As i've not changed my code...
> 
> Strange I don't have that problem. It is assigned default value '5'
> in both V5 and V6 see WSocket.pas and OverbyteIcsWSocket.
> 
> procedure TCustomSocksWSocket.AssignDefaultValue;
> begin
> inherited AssignDefaultValue;
> ...
> FSocksLevel  := '5';
> 
> Arno

Well, the problem comes from HttpProt (1768) in the THttpCli.DoBeforeConnect 
procedure.

procedure THttpCli.DoBeforeConnect;
begin
 FCtrlSocket.Addr:= FDnsResult;
 FCtrlSocket.LocalAddr   := FLocalAddr; {bb}
 FCtrlSocket.Port:= FPort;
 FCtrlSocket.Proto   := 'tcp';
 FCtrlSocket.SocksServer := FSocksServer; *<-- Here where 
THttpCli.FSocksServer is set by default to ''*
 FCtrlSocket.SocksLevel  := FSocksLevel;
 FCtrlSocket.SocksPort   := FSocksPort;
 FCtrlSocket.SocksUsercode   := FSocksUsercode;
 FCtrlSocket.SocksPassword   := FSocksPassword;
 FCtrlSocket.SocksAuthentication := FSocksAuthentication;
end;

Is it a bug ? Is it a plane ? no, it's superman ;)

-- 

Guillaume MAISON - [EMAIL PROTECTED]
83, Cours Victor Hugo
47000 AGEN
Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50
e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com

-- 
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] [HELP] Question...

2006-02-20 Thread Arno Garrels
Guillaume MAISON wrote:
> Arno Garrels a écrit :
>> Guillaume MAISON wrote:
>>> And, effectively, the NewValue is '', as i don't need it
>> 
>> Whether to use or not to use Socks is specified via property
>> SocksAuthentication, in your case socksNoAuthentication, property
>> SocksLevel may not be empty. 
>> 
> In that case, the property SocksLevel should be initialized at the
> component creation with a value. Which is not the case in the 
> source code... As i've not changed my code...

Strange I don't have that problem. It is assigned default value '5'
in both V5 and V6 see WSocket.pas and OverbyteIcsWSocket.

procedure TCustomSocksWSocket.AssignDefaultValue;
begin
inherited AssignDefaultValue;
...
FSocksLevel  := '5';

Arno

> 
> --
> 
> Guillaume MAISON - [EMAIL PROTECTED]
> 83, Cours Victor Hugo
> 47000 AGEN
> Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50
> e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com
-- 
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] [HELP] Question...

2006-02-20 Thread Guillaume MAISON
Arno Garrels a écrit :
> Guillaume MAISON wrote:
>> And, effectively, the NewValue is '', as i don't need it
> 
> Whether to use or not to use Socks is specified via property 
> SocksAuthentication,
> in your case socksNoAuthentication, property SocksLevel may not be empty.
> 
In that case, the property SocksLevel should be initialized at the component 
creation with a value. Which is not the case in the 
source code... As i've not changed my code...

-- 

Guillaume MAISON - [EMAIL PROTECTED]
83, Cours Victor Hugo
47000 AGEN
Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50
e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com

-- 
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] [HELP] Question...

2006-02-20 Thread Arno Garrels
Guillaume MAISON wrote:
> 
> And, effectively, the NewValue is '', as i don't need it

Whether to use or not to use Socks is specified via property 
SocksAuthentication,
in your case socksNoAuthentication, property SocksLevel may not be empty.

Arno

> Any clue someone ?
> 
> --
> 
> Guillaume MAISON - [EMAIL PROTECTED]
> 83, Cours Victor Hugo
> 47000 AGEN
> Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50
> e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com
-- 
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] [HELP] Question about starting THttpServer and TFtpServer

2005-11-09 Thread Guillaume MAISON
Angus Robertson - Magenta Systems Ltd a écrit :
>>are the Start procedures, from ThttpServer and TFtpServer, blocking 
>>procedures or not ?
> 
> 
> No, they just set the server to listen for incoming sessions.
> 
> Angus

Thanks to both !

Best regards,

-- 

Guillaume MAISON - [EMAIL PROTECTED]
83, Cours Victor Hugo
47000 AGEN
Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50
e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com

-- 
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] [HELP] Question about starting THttpServer and TFtpServer

2005-11-09 Thread Angus Robertson - Magenta Systems Ltd
> are the Start procedures, from ThttpServer and TFtpServer, blocking 
> procedures or not ?

No, they just set the server to listen for incoming sessions.

Angus
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] [HELP] Question about starting THttpServer and TFtpServer

2005-11-09 Thread Fastream Technologies
Hello Guillaume,

They start the server immediately however the server needs a message pump to 
work.

Best Regards,

SubZ

- Original Message - 
From: "Guillaume MAISON" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Wednesday, November 09, 2005 5:25 PM
Subject: [twsocket] [HELP] Question about starting THttpServer and 
TFtpServer


Hi everyone,

Just a small question which answer should be short ;) :

are the Start procedures, from ThttpServer and TFtpServer, blocking
procedures or not ?

Thanks in advance !

-- 

Guillaume MAISON - [EMAIL PROTECTED]
83, Cours Victor Hugo
47000 AGEN
Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50
e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be