Hi all,

I'm looking for a way (either programatically, or by running a command which can be used in system() for example) to shut down IP services on a connection without disconnecting it.

Let me elaborate. I'm having a case when a RAS dial-up connection is dialed (using the rasdial command, but it doesn't matter) and a connection is established, on which IP is enabled, which allows communication using the TCP/IP protocol. Now, after some time, I want to shut down the IP services on that connection, and again enable it after some time when the need arises. During all this time, the connection must physically remain connected.

The best I have been able to do is manipulating the routing table to delete the default gateway by issuing a "route delete 0.0.0.0" command, bu that's not what I need, since other parties of the connections might go on sending data over this connection. I want no data passing on this connection during a certain period.

Is there any easy way to achieve this goal?

TIA,
Ehsan
--
Even a broken watch is correct twice a day.


_______________________________________________ msvc mailing list [email protected] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.

Reply via email to