我在桌面上有一部分功能(C++),无法移动到网络上。一切的主要部分都在网络上。
例如:
我的桌面上有一个打开的记事本。我按下按钮,它会打开默认浏览器并导航到我的网站。我的网站是一个简单的文本区域。当在浏览器中写入一些文本时,它会自动在记事本中复制,并从记事本同步到浏览器。
我需要做什么:
- 创建一些连接桌面浏览器(站点)以
- 通过从浏览器调用桌面应用程序并使用它(发送/接收数据)
- 从桌面应用程序调用浏览器(打开网站)并使用它来 提供我的数据协议(发送/接收数据)
服务器-浏览器连接可以通过 WebSockets 或 Comet(2) 实现。
桌面上可以用什么?简单的套接字连接?并且可以在服务器上使用吗?
I have a part of functionality on desktop (C++), which can't be moved to the web. And the main part of all is on the web.
For example:
I have an opened notepad on my desktop. I push the button and it open the default browser and navigate to my site. My site is a simple text area. when a write some text in a browser, it automatically duplicates in a notepad, and synchronize from notepad to browser also.
What I need to do:
- create some connection Desktop-Browser(site) to provide my data protocol over
- call desktop application from browser and work with it (send/recv data)
- call browser (open web site) from desktop application and wotk with it (send/recv data)
Server-browser connection can be implemented via WebSockets or Comet(2).
What can be used on desktop? Simple socket connection? And can be used on server?
发布评论
评论(1)
您可以尝试这个 Arduino Pusher 客户端(我为 Pusher 工作),它包含 C++ WebSocket 功能。这样:
如果您想组建自己的基础设施,那么您可能必须:
You could try out this Arduino Pusher client (I work for Pusher) which is includes C++ WebSocket functionality. This way:
If you'd rather put together your own infrastructure then you're probably going to have to: