Results 1 to 5 of 5

Thread: Get active tcp connections and disconnect someone

  1. #1
    Join Date
    Jul 2011
    Beans
    8

    Get active tcp connections and disconnect someone

    Hi all,

    I have a problem when i port my app from win to unix, i write on C#(Mono), i cant find any information how to get all active server TCP connections and disconnect someone. Connections dont belongs to app.

    On windows i use 2 packages iphlpapi, wsock32 but they dont available on unix

    Thanks!

    Sorry my english
    Last edited by Hilgert; July 22nd, 2011 at 07:26 PM.

  2. #2
    Join Date
    Jul 2011
    Beans
    8

    Re: Get active tcp connections and disconnect someone

    nobody knows?

  3. #3
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: Get active tcp connections and disconnect someone

    Look into the "/proc/net" filesystem. Perhaps the "virtual" file "/proc/net/tcp" lists the connections you are interested in?

  4. #4
    hakermania's Avatar
    hakermania is offline Τώρα ξέρεις τι γράφω εδώ!
    Join Date
    Aug 2009
    Location
    Greece
    Beans
    1,702
    Distro
    Ubuntu Development Release

    Re: Get active tcp connections and disconnect someone

    also bumping only after at least 24 hours please
    Website

    Wallch (Wallpaper Changer): Sourceforge | Launchpad

  5. #5
    Join Date
    Jul 2011
    Beans
    8

    Re: Get active tcp connections and disconnect someone

    Thanks, for yours answers, i find "cutter" and TcpConnectionInformation for this.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •