Replies: 1 comment 1 reply
-
|
这里看代码会有一些歧义,但使用是没有问题的。 因为 .protocol 字段目前仅在 socket.udp_connect() 函数上做校验用,没有别的用途。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
以下是 UDP 章节中的一段描述:
其中提到 “可以使用 socket.start() ” 来重设 handle 的所有权。
但在
socket.lua中的start()方法是这样的:connect()方法如下:其中的
s对象,协议被 hardcode 为 TCP 了。因此在对一个 UDP handle 上调用 socket.start() 是不是有问题?
Beta Was this translation helpful? Give feedback.
All reactions