用于客户端/服务器应用程序的.NET 库?
我计划使用 C# 为我的公司编写一个小型“网络管理器”。它就像一个聊天应用程序。请参见下面的示例:
例如:客户端(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"
... ... ...
我为此找到了图书馆。请告诉我一些你所知道的事情。
谢谢 !
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) 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 !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 TcpClient 和 TcpListener< /a>.
Use a TcpClient and TcpListener.
您有什么理由不使用 WCF 吗?
对于您在此处描述的内容来说,这可能有点过分了,但此类应用程序必然会增长以增加功能。
它确实有很多功能,但这里有一个快速入门指南。
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.