How to talk to UDP sockets with HTML5?

前端 未结 6 1073
执笔经年
执笔经年 2020-12-05 02:07

What I have : A C++ application server running, Ready to send data to client which is supposed to a HTML5 page or app.

What I want :

6条回答
  •  情话喂你
    2020-12-05 02:23

    You could alternatively create an additional python local server for bridging the data between your C++ application and webpage.

    The html5 webpage connects to a local port that allows a web socket connection (use Flask/tornado).

    The C++ application connects to a UDP listener on a different port. See https://wiki.python.org/moin/UdpCommunication to setup.

    The python server basically forms a transparent data bridge between UDP port to websocket connection .

提交回复
热议问题