| Author | Topic: Advice needed for detecting IP connection ? |
---|
| Shum [MingYik] | Advice needed for detecting IP connection ?
on Thu, 07 Sep 2006 15:11:04 +0800Hello All,
I need some advice to detecting the IP connection still exist within
Xbase++ program ?
---------------------------
Shum [MingYik]
www.mingyik.com
--------------------------- |
| Vladimir Iahnenco | Re: Advice needed for detecting IP connection ?
on Thu, 07 Sep 2006 10:26:12 -0400Shum,
There are couple functions in wininet.dll. You may have a look at:
InternetGetConnectedStateEx in wininet.dll
InternetCheckConnection in wininet.dll
InternetAttemptConnect in wininet.dll
IsDestinationReachableA in SensAPI.dll
Regards,
Vladimir
"Shum [MingYik]" <shum@mingyik.com> wrote in message
news:5bbd2a93$bfa3652$22b8fe@news.alaska-software.com...
> Hello All,
>
> I need some advice to detecting the IP connection still exist within
> Xbase++ program ?
>
> ---------------------------
> Shum [MingYik]
> www.mingyik.com
> ---------------------------
>
> |
| Shum [MingYik] | Re: Advice needed for detecting IP connection ?
on Fri, 08 Sep 2006 13:45:28 +0800Hello Vladimir Iahnenco,
I want to Check the connection of two Xbase++ application (Client/Server)
throuh TCP/IP network (normally with asinet lib) ???
Any comment ?
Shum
www.mingyik.com
"Vladimir Iahnenco" <iahnenco@yahoo.com> glsD:14881653$32e1657e$22d626@news.alaska-software.com...
> Shum,
> There are couple functions in wininet.dll. You may have a look at:
> InternetGetConnectedStateEx in wininet.dll
> InternetCheckConnection in wininet.dll
> InternetAttemptConnect in wininet.dll
> IsDestinationReachableA in SensAPI.dll
>
> Regards,
> Vladimir
>
> "Shum [MingYik]" <shum@mingyik.com> wrote in message
> news:5bbd2a93$bfa3652$22b8fe@news.alaska-software.com...
>> Hello All,
>>
>> I need some advice to detecting the IP connection still exist within
>> Xbase++ program ?
>>
>> ---------------------------
>> Shum [MingYik]
>> www.mingyik.com
>> ---------------------------
>>
>>
>
> |
| Osvaldo Ramirez | Re: Advice needed for detecting IP connection ?
on Fri, 08 Sep 2006 12:22:41 -0600Hello Shum [MingYik]
Whay not using a socket to send data and recive data, so this way, I
think is the form to know to see both conection are live.
Regards
Osvaldo Ramirez |
| Shum [MingYik] | Re: Advice needed for detecting IP connection ?
on Sat, 09 Sep 2006 02:30:10 +0800Hello Osvaldo Ramirez,
I already doen in this way ....
But In this way , I found lose in memory (no Master iin Xbase++ 1.8.XXX or
the newest Xbase++ 1.90)
I think If using Ping ICMP .... Please comment it ....
Shum
www.mingyik.com
"Osvaldo Ramirez" <ramirezosvaldo@prodigy.net.mx>
???????:59022f57$ce152fb$246ed1@news.alaska-software.com...
> Hello Shum [MingYik]
>
> Whay not using a socket to send data and recive data, so this way, I think
> is the form to know to see both conection are live.
>
> Regards
> Osvaldo Ramirez |
| Osvaldo Ramirez | Re: Advice needed for detecting IP connection ?
on Sat, 09 Sep 2006 12:33:01 -0600Dear Shum
I am using a ping function, but I think that is not work very well,
talking about internet. So I changed in some part of my POS for ftp
function to get and send info to the FTP Server of my client.
If you want I can post some code
Best Regards
Osvaldo Ramirez |
| Shum [MingYik] | Re: Advice needed for detecting IP connection ?
on Sun, 10 Sep 2006 03:10:25 +0800Hello Osvaldo Ramirez,
My aim is that , Once the TCP/IP link has been setup between client and
Server,
The Server should check the TCP/IP links is still there or not ... If the
link broken the the server
release the resource of the broken link and wait for the client connect
again ....
Shum
www.mingyik.com
"Osvaldo Ramirez" <ramirezosvaldo@prodigy.net.mx>
???????:25c07f78$629ff47e$250ef0@news.alaska-software.com...
> Dear Shum
>
> I am using a ping function, but I think that is not work very well,
> talking about internet. So I changed in some part of my POS for ftp
> function to get and send info to the FTP Server of my client.
>
> If you want I can post some code
>
> Best Regards
> Osvaldo Ramirez |
| Naresh | Re: Advice needed for detecting IP connection ?
on Thu, 28 Sep 2006 10:15:00 +0100Shum,
If the server is listening in blocked mode and receives 0 bytes means
the client has dropped the connection.
-Naresh
Shum [MingYik] wrote:
> Hello Osvaldo Ramirez,
>
> My aim is that , Once the TCP/IP link has been setup between client and
> Server,
>
> The Server should check the TCP/IP links is still there or not ... If the
> link broken the the server
> release the resource of the broken link and wait for the client connect
> again ....
>
>
> Shum
> www.mingyik.com
>
>
>
>
>
> "Osvaldo Ramirez" <ramirezosvaldo@prodigy.net.mx>
> ???????:25c07f78$629ff47e$250ef0@news.alaska-software.com...
>
>>Dear Shum
>>
>>I am using a ping function, but I think that is not work very well,
>>talking about internet. So I changed in some part of my POS for ftp
>>function to get and send info to the FTP Server of my client.
>>
>>If you want I can post some code
>>
>>Best Regards
>>Osvaldo Ramirez
>
>
> |