From: CppBuilder2006 on
I need an API function for disconnecting from internet.
From: David Schwartz on
On Jan 7, 4:32 pm, CppBuilder2006 <cppbuilder2...(a)gmail.com> wrote:

> I need an API function for disconnecting from internet.

It's not clear what that means. Define precisely what you want to do.

For example, would deleting the default route do what you want? Would
shutting down the interface?

DS
From: Christian ASTOR on
On 8 jan, 01:32, CppBuilder2006 <cppbuilder2...(a)gmail.com> wrote:
> I need an API function for disconnecting from internet.

You can use INetConnection::Disconnect()
From: CppBuilder2006 on
On Jan 8, 7:02 am, David Schwartz <dav...(a)webmaster.com> wrote:
> On Jan 7, 4:32 pm, CppBuilder2006 <cppbuilder2...(a)gmail.com> wrote:
>
> > I need an API function for disconnecting from internet.
>
> It's not clear what that means. Define precisely what you want to do.
>
> For example, would deleting the default route do what you want? Would
> shutting down the interface?
>
> DS

I need something like this:

while(1)
{
bool is_connected = IsConncedted();
if(is_connected && time > Time("12:00")
{
Disconnect();
cout<< "Go to bed, it's tool late";
}
}