🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
7 messages
7 total messages Started by patrick_artaud Sun, 24 Oct 2004 08:21
(new) is PC connected?
#1583
Author: patrick_artaud
Date: Sun, 24 Oct 2004 08:21
9 lines
1275 bytes
Hello,
I would know if the user is connected, I have looked at the TClientSocket 
component, I have tried , but I don't understand very well, all that I read 
is "after connection" but not "is connected"?
I have try to find the "InternetGetConnectedState" method in my help but I 
don't find (I use BCB6 Pro)
Where must I look?
I thank you in advance
Patrick 
Re: (new) is PC connected?
#1584
Author: hans galema
Date: Sat, 23 Oct 2004 09:41
28 lines
1738 bytes
patrick_artaud wrote:

> I would know if the user is connected, 

Who to what ?

Computers can be connected to the internet.
Programs can be connected to otherprograms -on the internet-.

A user wants to surf or mail.

> I have looked at the TClientSocket 
> component, I have tried , but I don't understand very well, all that I read 
> is "after connection" but not "is connected"?

See the OnConnect event.

> I have try to find the "InternetGetConnectedState" method in my help but I 
> don't find (I use BCB6 Pro)
> Where must I look?

There is still a thread about that:
Newsgroups: borland.public.cppbuilder.internet.socket
news://forums.borland.com/borland.public.cppbuilder.internet.socket
Subject: Internet connection detection
Date: Wed, 13 Oct 2004 13:17:23 +0200

Hans.
Re: (new) is PC connected?
#1585
Author: Artaud
Date: Sat, 23 Oct 2004 10:01
38 lines
2306 bytes
I thank you very much
It was to warn the user ,that there is an upgrade on the website.
I have look at the thread you said,and I have tried a "showmessage" in the 
"OnConnect" method, but nothing.
I thank you very much again, and I see it is not easy to do!
Thank you
Patrick
"hans galema" <notused@notused.nl> a �crit dans le message de news: 
417a2734@newsgroups.borland.com...
> patrick_artaud wrote:
>
>> I would know if the user is connected,
>
> Who to what ?
>
> Computers can be connected to the internet.
> Programs can be connected to otherprograms -on the internet-.
>
> A user wants to surf or mail.
>
>> I have looked at the TClientSocket component, I have tried , but I don't 
>> understand very well, all that I read is "after connection" but not "is 
>> connected"?
>
> See the OnConnect event.
>
>> I have try to find the "InternetGetConnectedState" method in my help but 
>> I don't find (I use BCB6 Pro)
>> Where must I look?
>
> There is still a thread about that:
> Newsgroups: borland.public.cppbuilder.internet.socket
> news://forums.borland.com/borland.public.cppbuilder.internet.socket
> Subject: Internet connection detection
> Date: Wed, 13 Oct 2004 13:17:23 +0200
>
> Hans.
> 
Re: (new) is PC connected?
#1586
Author: hans galema
Date: Sat, 23 Oct 2004 10:30
9 lines
1205 bytes
Artaud wrote:

 > ... I have tried a "showmessage" in the
> "OnConnect" method, but nothing.

If TClientSocket connects then OnConnect definitely triggers.
Otherwise the OnError event triggers.

Hans.
Re: (new) is PC connected?
#1587
Author: Artaud
Date: Sat, 23 Oct 2004 15:29
19 lines
1869 bytes
Thank you again,
Do you know where I could find a basic example of the use of  TClienSocket, 
because I have seen I must indicate the "remoteHost" I have done it(I have 
looked in the help) but I obtain an error message ,it says it find the 
website but says I must give other informations.
I don't understand how to use it!!
I thank you again
Patrick
"hans galema" <notused@notused.nl> a �crit dans le message de news: 
417a32a8$1@newsgroups.borland.com...
> Artaud wrote:
>
> > ... I have tried a "showmessage" in the
>> "OnConnect" method, but nothing.
>
> If TClientSocket connects then OnConnect definitely triggers.
> Otherwise the OnError event triggers.
>
> Hans. 
Re: (new) is PC connected?
#1588
Author: hans galema
Date: Sat, 23 Oct 2004 15:40
20 lines
1756 bytes
Artaud wrote:

> Do you know where I could find a basic example of the use of  TClienSocket, 

Look in the Examples directory for the Chat Client and Server. Be aware:
it is an awfull example. Better look in the socket newsgroup for many
discussions.

> because I have seen I must indicate the "remoteHost" I have done it(I have 
> looked in the help) but I obtain an error message ,it says it find the 
> website but says I must give other informations.

I have never seen such a message. If you need help please
post your code, the url and the exact errrormesage(s).

> I don't understand how to use it!!

There are many aspects.

Hans.
Re: (new) is PC connected?
#1590
Author: patrick_artaud
Date: Wed, 27 Oct 2004 13:26
33 lines
2350 bytes
I go to see in the example directory, and in the "socket" forum. And I thank 
you for all your help.
At this time I go to use the TFTP component (I have understood how it 
work!!!) and I will done that my application go to look is the user is 
connected with this component. I think it is not a "beautifull" way to 
obtain what I need, but I must first understand how work the other.
Thank you again
Excuse my English
Patrick

hans galema" <notused@notused.nl> a �crit dans le message de news: 
417a7b56$1@newsgroups.borland.com...
> Artaud wrote:
>
>> Do you know where I could find a basic example of the use of 
>> TClienSocket,
>
> Look in the Examples directory for the Chat Client and Server. Be aware:
> it is an awfull example. Better look in the socket newsgroup for many
> discussions.
>
>> because I have seen I must indicate the "remoteHost" I have done it(I 
>> have looked in the help) but I obtain an error message ,it says it find 
>> the website but says I must give other informations.
>
> I have never seen such a message. If you need help please
> post your code, the url and the exact errrormesage(s).
>
>> I don't understand how to use it!!
>
> There are many aspects.
>
> Hans. 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads