用于客户端/服务器应用的.NET库?

时间:2010-07-14 02:48:20

标签: c# client chat

我计划使用C#为我公司编写一个小型“网络管理员”。它就像一个聊天应用程序。请参见下面的示例:

Ex:客户端(C)是经理,服务器(S)

C: send string "is_process_running x.exe" (check x.exe is running on server pc)
S: check and send to C: "x.exe is running\nPath: 'C:\\windows\system32\x.exe'"
C: "kill_process_with_warning x.exe"
S: Show a message "Administrator detected you 're running a program that disallowed on computer. It will be kill in 10 seconds" and S kill process x.exe. Reply to C: "process killed!"
C: "disconnect"

... ... ...

我找到了那个库。请告诉我你知道的事情。

谢谢!

2 个答案:

答案 0 :(得分:2)

使用TcpClientTcpListener

答案 1 :(得分:1)

你有什么理由不使用WCF吗? 对于你在这里所描述的内容,这可能是一种矫枉过正,但是为了增加功能性,这些应用程序必然会增长。 它确实有很多功能,但这里有一个quickstart指南。