簡體   English   中英

如何制作簡單的 python UDP 套接字服務器?

[英]How to make simple python UDP socket server?

我正在嘗試基於 UDP 制作 python 套接字服務器。

The point is that we need to receive data from the Java client socket server and the python UDP protocol socket server must throw JSON data to React in the front.

我有做一個簡單的UDP聊天服務器的知識水平,所以我現在很擔心。 我目前正在閱讀 django 頻道官方文檔。 django-channeles 是否也提供簡單的配置以使用 UDP 協議?

文檔中有原始 UDP 的規范。 UDP 不可靠,因為有些數據可能會丟失,所以沒有廣泛使用。 如果必須使用它,則必須使用 websocket 消費者作為模板,根據規范實現 UDP 消費者

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM