我计划用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"... ...。
我为此找到了库。请告诉我你所知道的有关这方面的信息。
谢谢!
发布于 2010-07-14 10:55:40
使用TcpClient和TcpListener。
发布于 2011-07-26 02:21:50
你有什么理由不使用WCF吗?对于你在这里所描述的,这可能是一种夸张的说法,但为了增加功能,这样的应用程序肯定会增长。它确实有很多功能,但这里有一个quickstart指南。
https://stackoverflow.com/questions/3243067
复制相似问题