Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to connect and disconnect to internet by Exist connection

how to connect and disconnect to internet by Exist connection

Scheduled Pinned Locked Moved C#
tutorialquestioncsharp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    apadana_1989
    wrote on last edited by
    #1

    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

    L J 2 Replies Last reply
    0
    • A apadana_1989

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • A apadana_1989

        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

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups