Solved

Dial Up Networking

Posted on 1998-08-03
3
153 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
Comment Utility
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
Comment Utility
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
Comment Utility
good luck
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now