?
Solved

Dial Up Networking

Posted on 1998-08-03
3
Medium Priority
?
178 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
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…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Suggested Courses

801 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