WCF/WPF和C#中的多个远程屏幕查看器 [英] Multiple Remote Screen Viewer in wcf / wpf and c#

查看:187
本文介绍了WCF/WPF和C#中的多个远程屏幕查看器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在WPF中创建一个应用程序,其中一名老师是本地的主要主持人,她通过LAN与30位学生连接..
老师想通过他/她的IP地址捕获学生屏幕..
无论学生在计算机上做什么,老师都可以捕获屏幕并将其保存在PC上(通过LAN)...
没有可用的Internet连接...
请帮我...并给我适当的链接...仅在WCF/WPF中,仅使用C#
首先感谢Thanx ...

I am creating one application in WPF, where a teacher is the main local host and she is connected to 30 students through LAN..
The teacher wants to capture a Students Screen through his/her IP Address..
Whatever the student is doing on his/her Computer, the teacher can capture a screen and save it on her PC (through LAN)...
There is No Internet Connection is available...
Plz help me out...and give me proper link...in WCF / WPF,C# only
Thanx in Advance...

推荐答案

首先,您需要在讲师的机器上进行要求才能获取屏幕截图.
然后,客户端需要使用一些Windows API来获取屏幕的位图图像,本文 [ ^ ]会有所帮助.
然后,您需要将位图流回讲师的计算机.
First you need to make a reqeust from the Instructor''s machine to get the screenshot.
Then the client needs to use a few Windows APIs to get a bitmap image of the screen, this article[^] will be of help.
Then you need to stream the bitmap back to the instructor''s machine.


除了Keith的解决方案.理想情况下,您应该在每个学生的计算机上创建并运行一个小型Windows服务,并通过网络响应包含位图的流.关于网络实施,有几个层次;看到我过去的回答:
如何将byte []发送到另一台PC [ ^ ],
在局域网上与两个Windows应用程序进行通信. [ ^ ].
也许最简单的方法是将WCF(self-hosting)与Service Contract一起使用. 参见例如:
http://msdn.microsoft.com/en-us/library/ms731835.aspx [ ^ ].

替代方案:学生计算机的服务可以是HTTP服务器,通用服务器或仅可以使用位图进行响应的简单专用服务器.
这是有用的示例:
C#中的简单HTTP服务器 [
In addition to the solution by Keith. Ideally, you should create and run a small Windows Service on each student''s machine, responding by network with the stream containing a bitmap. There are several levels on network implementation; see my past answer on this:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].
Perhaps the easiest way would be using WCF (self-hosting) with Service Contract.
See, for example:
http://msdn.microsoft.com/en-us/library/ms731835.aspx[^].

Alternative: the service of the student machine could be HTTP server, a general-purpose one or a simple specialized server which can only respond with bitmaps.
This is the useful example:
Simple HTTP Server in C#[^].

In this way, the teacher''s side can be a regular Web browser.

—SA


这篇关于WCF/WPF和C#中的多个远程屏幕查看器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆