如何为游戏 LAN 聚会创建远程查看器?
在我的 LAN 中,我有 11 台计算机用于多人游戏 LAN 聚会。
我需要为 LAN 中的所有 10 台计算机创建一个远程查看器。
所以这个程序只需要捕获桌面并将其发送到我的计算机。
我必须使用哪些 API、函数或库?
。
Ps 我想创建自己的程序,所以我不想使用其他程序,如 RealVNC。
Pps 我只想创建一个远程查看程序,而不是一个远程控制程序。
In my LAN I have 11 computers for multiplayer games LAN parties.
I need to create a remote viewer for all 10 computers in my LAN.
So this program only needs to captures and sends the desktop to my computer.
What API, functions or library do I have to use ?
.
P.s. I want create my own program, so I don't want to use other programs like RealVNC.
P.p.s. I want create only a remote viewer program and NOT a remote control program.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可以给你一些关于 Windows 平台和 Borland Builder C++ 的建议。您将需要两个应用程序,一个安装在客户端,另一个安装在您这边。
客户端
侦听您的命令请求的 TCP 服务器。
一个 UDP 客户端,用于将屏幕截图发送到您身边。
屏幕截图抓取器,您可以通过向 Windows 发送 print-scrn 消息,然后从剪贴板抓取,转换为 jpg 并发送 UDP 数据包来实现。您需要尝试不同的图像分辨率和压缩方案,以获得质量和传输速度之间的良好权衡,我认为这对于当今的网络来说不是一个大问题。
您这边
一个 TCP 客户端,用于发送您的屏幕截图命令请求。
用于接收屏幕截图的 UDP 监听端点。
如果您喜欢 C++ 或 Delphi,您可以使用 Indy 项目组件,这真的非常简单,他们有许多 UDP 和 TCP 客户端-服务器应用程序的示例,可以用来开发此类工具,请访问 www.indyproject。 org 并记住 Google 是您最好的朋友。
I can give you some advice for Windows platform and Borland Builder C++. You'll need two applications, one installed at client side and one in your side.
Client side
A TCP server listening for your command request.
An UDP client to send screenshot to your side.
Screenshot grabber, you can do it by sending a print-scrn message to windows and then grabbing from clipboard, converting to a jpg and send an UDP packet. You'll need to experiment different image resolutions and compress schemes to obtain a good trade in between quality and transfer speed, I don't think its a big issue with today networks.
Your side
A TCP Client to send your command request for a screenshot.
An UDP listening endpoint to receive screenshot.
If you are into C++ or Delphi, you could use Indy project components for that, its really very easy, they have many examples of UDP ad TCP client-server apps one can use to develop such kind of tool, check at www.indyproject.org and remember that Google is your best friend for this.