Solved

Dial Up Networking

Posted on 1998-08-03
3
159 Views
Last Modified: 2010-04-15
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
Comment
Question by:rab01
  • 2
3 Comments
 
LVL 2

Expert Comment

by:shchuka
ID: 1251924
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
 
LVL 3

Accepted Solution

by:
xyu earned 100 total points
ID: 1251925
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
 
LVL 3

Expert Comment

by:xyu
ID: 1251926
good luck
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question