Solved

Dial Up Networking

Posted on 1998-08-03
3
164 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

820 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