Hi
I am currently having problems with the ICSHttpCli component in Kylix 3. When I
set the URL to something like http://username:[EMAIL PROTECTED]/somepage.html
it breaks, I just keep getting a response code 0. I've tried the exact same
code in Delphi 2005 on Windows and it works fine, any idea
Hello Dod,
> Of course I use more meaningfull names in my real code :-) That was
> just for sample.
But please you confuse use choosing less meaning full names here :(
> As I said, this is for my FAQ and I have no real problem using
> TWSocketServer and TWSocket, I just try to remember
Hello Dod,
> MySocket:=TWSocketServer.Create(nil);
> MySocket.OnClientCreate:=MyOnClientCreate;
> MySocket.OnClientConnect:=MyOnClientConnect;
> MySocket.OnDataAvailable:=MyOnDataAvailable;
Ok what you do wrong is followin: MySocket is a server. A server never
receives data, so assigning to his O
Hello Arno,
AG> Choose more meaningfull names!!
Of course I use more meaningfull names in my real code :-) That was
just for sample.
AG> TWSocketServer also has an event OnDataAvailable, but that has _nothing to
do
AG> with the client object.
Yes, in fact this one is from TWSocket and is
Dod wrote:
> Hello Francois,
>
> Yes, I mistaken :
>
> MySocket:=TWSocketServer.Create(nil);
> MySocket.OnClientCreate:=MyOnClientCreate;
> MySocket.OnClientConnect:=MyOnClientConnect;
> MySocket.OnDataAvailable:=MyOnDataAvailable;
>
> Doing this will not make MyOnDataAvailable work unless I als
Hello Francois,
Yes, I mistaken :
MySocket:=TWSocketServer.Create(nil);
MySocket.OnClientCreate:=MyOnClientCreate;
MySocket.OnClientConnect:=MyOnClientConnect;
MySocket.OnDataAvailable:=MyOnDataAvailable;
Doing this will not make MyOnDataAvailable work unless I also put it
on the MyOnClientConne
> I saw in online ICS help that OnClientConnect was place to assign
This event is for TWSocketServer which instanciate a new TWSocket for each
client connection. Don't
confuse TWSocketServer own events and TWSocket created instances events.
--
[EMAIL PROTECTED]
http://www.overbyte.be
-
Hello Dod,
First of all you mentions 'OnClientDataAvailable'. Yo do mean
OnDataAvailable event ???
> MySocket:=TWSocket.Create(nil);
> MySocket.OnClientConnect:=MyOnClientConnect;
> MySocket.OnClientDataAvailable:=MyOnClientDataAvailable;
Thats correct and in most case a good programming techniq
Hello Francois,
For one of the question you answered : each .Connect you must
re-assign IP+Port+Proto properties.
For other question I try to re-explain better. If do do this :
MySocket:=TWSocket.Create(nil);
MySocket.OnClientConnect:=MyOnClientConnect;
MySocket.OnClientDataAvailable:=MyOnClient
Then you have a non-transparent firewall which is indeed a proxy that
requires you to enter username/password or at least provide in a format.
There should be an explanation of them in the ftpcli.pas.
Regards,
SZ
- Original Message -
From: "Jean-Paul Passama" <[EMAIL PROTECTED]>
To: "
Hi,
Yes I just checked all my code and I have seen :
FtpClient1.Passive := true;
Thank for the idea, even if it doesn't work here...
JP Passama
Fastream Technologies a écrit :
> Hello,
>
> Have you tried the passive mode?
>
> Regards,
>
> SubZ
>
> - Original Message -
> From: "Jea
Sorry, port 22 is the standard port for the data channel.
Arno
Arno Garrels wrote:
> Hello,
>
> TFtpCli requires the same firewall settings as any other
> FTP client. What kind of firewall do you mean? Proxy
> or NAT? Usually on NAT, if port 23 is blocked for incomming
> data passive mode might
Sorry but I don't understand the question !
Here is an answer (if it answer one of your questions):
You must re-assign Addr, Port and Protocol after the socket has been closed.
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From: "Dod" <[EMAIL PROTECTED]>
To: "ICS suppo
Hello,
TFtpCli requires the same firewall settings as any other
FTP client. What kind of firewall do you mean? Proxy
or NAT? Usually on NAT, if port 23 is blocked for incomming
data passive mode might work.
Tweaking the firewall settings during the installation is
a rather bad idea, though I've b
Hello,
Have you tried the passive mode?
Regards,
SubZ
- Original Message -
From: "Jean-Paul Passama" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, February 15, 2006 1:30 PM
Subject: [twsocket] Problem with Firewalls
> Hi,
>
> I have made a program which send datas (text file) using a FTP
Hi,
I have made a program which send datas (text file) using a FTPClient. It
works fine but on many users'computer, the firewall forbid the datas to
be sent.
These users are old persons who are enable to check the firewall. So I
am looking about a way to by-pass this difficulty, maybe something
Hello,
Is there a list of which properties and events are not "inherited"
from the ones set after .Create and which ones must be re-set again
after a socket close (for socket.connect I think it is just ip+port as
they are the only ones raising an error but I am not about other
propert
I think the timer should be reset for each data sent/got. Otherwise, for
lenghtly downloads, it would simply break the it!!
Regards,
SZ
- Original Message -
From: "Francois Piette" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Wednesday, February 15, 2006 9:39 AM
Subject: Re: [t
18 matches
Mail list logo