开发者

.NET Library for Client/Server application?

I have a plan to write a small "Network manager" for my company using C#. It like a chat application. Please see example bellow:

Ex: Client(C开发者_如何学Python) is manager, Server(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"

... ... ...

I finding library for that. Please tell me something you know about that.

Thanks !


Use a TcpClient and TcpListener.


Is there any reason you wouldn't use WCF? It may be an overkill for what you described here, but such apps are bound to grow in order to add funcionality. It does have a great lot of abilities, but here's a quickstart guide.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜