简体   繁体   English

以下原则适用于高速公路python吗?

[英]Is the following principle the right for autobahn python?

I'm researching about WebSockets atm and just found Autobahn with Autobahn|Python . 我正在研究WebSockets atm,并且刚刚使用Autobahn|Python找到了Autobahn|Python I'm not sure that I understand the function of that toolset (?) correctly. 我不确定我是否正确理解该工具集(?)的功能。

My intention is to use a WebSocket-Server for communication between a C program and a HTML client. 我的意图是使用WebSocket-ServerC程序和HTML客户端之间进行通信。

The idea is to let the C program connect via WebSocket to the Server and send the calculation progress of the C program to every HTML client that is connected to that WebSocket-Server . 这个想法是让C程序通过WebSocket连接到服务器,并将C程序的计算进度发送到与该WebSocket-Server连接的每个HTML客户端。

Am I able to write a WebSocket Server with Autobahn|Python and then connect with an HTML5-client and a C program client? 我可以使用Autobahn|Python编写WebSocket服务器,然后与HTML5-clientC程序客户端连接吗?

Autobahn|Python provides both a WebSocket implementation for Python and an implementation for a client for the WAMP protocol on top of that. Autobahn | Python既提供Python的WebSocket实现,又提供WAMP协议的客户端实现。

You can use the WebSocket part on its own to implement your WebSocket server. 您可以单独使用WebSocket部件来实现WebSocket服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM