golang/go

net: clarify UDPConn Read behaviour documentation

Open

#31,991 建立於 2019年5月13日

在 GitHub 查看
 (3 留言) (4 反應) (0 負責人)Go (19,008 fork)batch import
DocumentationNeedsFixhelp wanted

倉庫指標

Star
 (133,883 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

The documentation for UPDConn.Read says that "Read implements the Conn Read method." However, UDP is not stream and Conn is described as "a generic stream-oriented network connection".

It would be nice to be able to know what the characteristics of Read are with respect to packets — whether Read only reads a packet at a time or not — without having to read the source.

See https://groups.google.com/forum/#!topic/golang-nuts/f_s3fGRgAF8

貢獻者指南