|
|
#1 |
|
Member
Join Date: Feb 06
Posts: 61
![]() |
Halo i'm looking for ways to enable or disable internet connection of remote computers, like everythings are controlled by the server computer. Can anyone give me some advise on this matter... A sampel would be nice.. Thanks alot..
|
|
|
|
|
|
#2 |
|
Frenzied Member
Join Date: Nov 05
Location: Cheshire, UK
Posts: 1,471
![]() ![]() |
Re: Enable or disable internet connection of remote computers
When you want to disconnect the internet of the client you can do it by having your server send some data which tells it to d/c, when the clients receives this, it calls the disconnect internet API which can be found on this forum if you search.
client data arrival sub: VB Code:
VB Code:
__________________
Chris Codebank: Easy Javascript Form Validation (OOP) If this post helped please rate it! |
|
|
|
|
|
#3 |
|
Member
Join Date: Feb 06
Posts: 61
![]() |
Thank you so much. I will try it and tell you all what are the results. Have a nice day....
|
|
|
|
|
|
#4 | |
|
New Member
Join Date: Mar 06
Posts: 4
![]() |
Re: Enable or disable internet connection of remote computers
Quote:
thanks in advance. |
|
|
|
|
|
|
#5 |
|
Member
Join Date: Feb 06
Posts: 61
![]() |
I have tried to find the disconnect internet API but i can't seem to find it anywhere. Can someone please show us where to find it.
Thanks alot.. |
|
|
|
|
|
#6 |
|
Frenzied Member
Join Date: Nov 05
Location: Cheshire, UK
Posts: 1,471
![]() ![]() |
Re: Enable or disable internet connection of remote computers
__________________
Chris Codebank: Easy Javascript Form Validation (OOP) If this post helped please rate it! |
|
|
|
|
|
#7 |
|
Member
Join Date: Feb 06
Posts: 61
![]() |
Hai the182guy,
Thanks for your API site. But i still have one small question. Can the coding work if the computer is connected to the internet though LAN. We are using broadband with router and switch to connect to each of the computers to the internet. Thanks alot in advanced |
|
|
|
|
|
#8 |
|
Frenzied Member
Join Date: Nov 05
Location: Cheshire, UK
Posts: 1,471
![]() ![]() |
Re: Enable or disable internet connection of remote computers
if your using a router, you can d/c the network conection using the WNNetCancel API, here it is:
http://www.mentalis.org/apilist/WNet...nnection.shtml
__________________
Chris Codebank: Easy Javascript Form Validation (OOP) If this post helped please rate it! |
|
|
|
|
|
#9 |
|
Member
Join Date: Feb 06
Posts: 61
![]() |
VB Code:
VB Code:
PS:sckControlPanel = Winsock Guys the above are the two of the coding which i obtain from http://www.mentalis.org/apilist/WNet...nnection.shtml The first part is for the client side and the second one is for the server side. Now i wonder what did i do wrong because when i execute the disconnect command from the server side to the client, nothing is happening. Can somebody tell me what is wrong please.... Thanks alot in advanced |
|
|
|
|
|
#10 |
|
Frenzied Member
Join Date: Nov 05
Location: Cheshire, UK
Posts: 1,471
![]() ![]() |
Re: Enable or disable internet connection of remote computers
do you have any code so that the client can receive the data?
__________________
Chris Codebank: Easy Javascript Form Validation (OOP) If this post helped please rate it! |
|
|
|
|
|
#11 |
|
Member
Join Date: Feb 06
Posts: 61
![]() |
VB Code:
I put this part at the client side. so when i execude this VB Code:
It should have call for the disconnect to function. But nothing seem to be happening. I wonder why?? |
|
|
|
|
|
#12 |
|
Frenzied Member
Join Date: Nov 05
Location: Cheshire, UK
Posts: 1,471
![]() ![]() |
Re: Enable or disable internet connection of remote computers
in the Case "Disconnect" part put a msgbox and try it, this will tell you if its a problem with the connection/data arrival or a problem with the CancelConnectionAPI
also make s small app that just uses the CancelConnection API and try it, to see if the API actually works
__________________
Chris Codebank: Easy Javascript Form Validation (OOP) If this post helped please rate it! |
|
|
|
|
|
#13 |
|
Member
Join Date: Feb 06
Posts: 61
![]() |
I have tried with the msgbox and the connection part is ok so i have also tried with this
VB Code:
On a single form and when i excecute it also nothing is happening. Can someone tell me why??? |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|