Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Ras features in wwIPStuff
Message
From
31/05/2001 20:23:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Using Ras features in wwIPStuff
Miscellaneous
Thread ID:
00513526
Message ID:
00513526
Views:
40
Hi All

I have come across a problem when using the rasdial() and rashangup() methods in wwIPStuff. Basically if I use rasdial() a second time to query whether a connection exists then issuing rashangup() returns .T. but does not hangup the connection.

This doesn't work:
o=create("wwipstuff")
?o.rasdial('Account','Username','Password') && Returns .T. connection made
** Do whatever online

** Now check if we still have connection
?o.rasdial('Account','','') && Returns .T. still have connection
?o.rashangup() && Returns .T. but does not hangup

This DOES work:
o=create("wwipstuff")
?o.rasdial('Account name','Username','Password') && Returns .T. connection made
nHandle=o.nRasHandle
** Do whatever we need to online

** Now check if we still have connection
?o.rasdial('Account name','','') && Returns .T., still have connection
?o.nRasHandle && Still same value
?o.rashangup() && Returns .T. but does not hang up
?o.nRasHandle && Gives 0
** ReAssign rashandle
o.nRasHandle=nHandle
?o.rashangup() && Returns .T. and hangs up

From what I have managed to read I think it has something to do with the handle being set to NULL before reissuing rasdial() but this happens in the wwipstuff dll.

Am I missing something here and/or is there a better way of doing this.

(using W2K SP1 , VFP6 SP5)

Cheers
Charlie
Next
Reply
Map
View

Click here to load this message in the networking platform