|
hi guys
i want connect and disconnect to internet by exist connection in the c#
how can i connect and disconnect to internet by exist connection in the c# ?
please guide me
thanks a lot
|
|
|
|
|
What do you mean "connect to internet"? You need to know what destination you are going to connect to, and how you will communicate to it. Please give some more detail of your problem.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
apadana_1989 wrote: how can i connect and disconnect to internet by exist connection in the c# ?
You can't using the standard definition of the terms you are using.
By definition if you close a connection it is done. It can't be used again.
Guessing what you might really want...
If you want the client box to have a single connection then you could connect to another server, and use it as an intelligent proxy to issue commands for you. So that server does the connect/disconnect and just redirects traffic to the client. But the server MUST exist for this to work.
If you are referring to a wireless/VPN/modem 'connection' via which your client app tunnels IP traffic then normally it stays up anyways. But if you want to control it explicitly because it is closing then you would need to get the API for that specific thing (wireless/VPN/modem) and control it yourself.
|
|
|
|