PDA

View Full Version : Get active tcp connections and disconnect someone



Hilgert
July 22nd, 2011, 07:24 PM
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

Hilgert
July 22nd, 2011, 10:04 PM
nobody knows?

Zugzwang
July 23rd, 2011, 12:31 PM
Look into the "/proc/net" filesystem. Perhaps the "virtual" file "/proc/net/tcp" lists the connections you are interested in?

hakermania
July 23rd, 2011, 12:35 PM
also bumping only after at least 24 hours please

Hilgert
July 23rd, 2011, 12:49 PM
Thanks, for yours answers, i find "cutter" and TcpConnectionInformation for this.