• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

Dial Up Networking

How can I disconnect a dial up connection that started up when I opened a socket, but won't disconnect when I close the socket. I'm using initialise and terminate calls properly, but even when the application terminates the connection persists. This is 32 bit code.
0
rab01
Asked:
rab01
  • 2
1 Solution
 
shchukaCommented:
I haven't tried it - but can you just send the ATH command directly to the modem port?  ATH simply hangs up the modem line.
0
 
xyuCommented:
I'm not sure that You can send ATH command to the modem while RAS or any other dial up holding the port handle :) more that that at the time that connection is etablished your "ATH" will be recognized as part of transport protocol :)

The solution of that can be external with NT :
  a. You can configure RAS to close connection after some seconds of idle ...
  b. do something like that
     NET.EXE stop "Remote Access Server"
     NET.EXE start "Remote Access Server"
  c. User service manager function like OpenService,   ControlService, etc. to do the same from Your C code .... meanwile under Win95 some of these  functions are still exists :)



0
 
xyuCommented:
good luck
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now