可以通过热点进行屏幕显示或任何数据共享 [英] Can screen or any data sharing possible through hotspot

查看:207
本文介绍了可以通过热点进行屏幕显示或任何数据共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开展一个项目。一个桌面应用程序,通过热点与多个连接的用户共享屏幕,没有任何互联网连接。但我不确定是否可能。



我尝试了什么:



我已经尝试过创建热点的解决方案并成功完成了它。在共享屏幕旁边。

I am working on a project. A desktop application to share screen to multiple connected user's over hotspot and without any internet connectivity.But i am not sure if that's possible.

What I have tried:

I have tried the solution to create hotspot and successfully done it. Next to share screen.

推荐答案

SignalR 应用程序可能是最简单的方法,请参阅此示例: CodePlex Archive [ ^ ]但是可以发送的图片大小有限。

CodePlex示例使用 IIS ,但它也可以制作更简单的自主式SignalR 应用程序,请参阅:教程:SignalR自主机| Microsoft Docs [ ^ ]



这是另一个有趣的SignalR聊天应用程序,带有图片: [ Chat app ]



如果您需要发送更大的图片, TCP 将是更好的选择,请参阅: TcpClient类(System.Net.Sockets) [ ^ ]

你也可以用一个简单的网络服务器,如棒上的USB网络服务器,XAMPP或类似处理的东西大部分文件传输并使用SignalR进行通信。

只需将文件放在Web服务器的根目录中,然后您就可以使用例如httpsp://1.2.3.4/myfile.jpg使用 WebClient.DownloadFile()下载它。

请参阅: WebClient.DownloadFile方法(字符串,字符串)(System.Net) [ ^ ]
A SignalR application might be the simplest way to do this, see this example: CodePlex Archive[^] but there is a limit to the size of the pictures that can be sent.
The CodePlex example uses IIS, but it is also possible to make an even simpler selfhosted SignalR application, see: Tutorial: SignalR Self-Host | Microsoft Docs[^]

Here is another interesting SignalR chat app with pictures: [Chat app]

If you have to send larger pictures, TCP would be a better choice, see: TcpClient Class (System.Net.Sockets)[^]
You could also use a simple web server like "USB webserver on a stick", XAMPP or something similar to handle the bulk of the file tranfers and use SignalR for the communication.
Just place the files in the root directory of the web server, then you can use e.g. htttp://1.2.3.4/myfile.jpg to download it with WebClient.DownloadFile().
See: WebClient.DownloadFile Method (String, String) (System.Net)[^]


这篇关于可以通过热点进行屏幕显示或任何数据共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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