golang/go

net: clarify UDPConn Read behaviour documentation

Open

#31 991 ouverte le 13 mai 2019

Voir sur GitHub
 (3 commentaires) (4 réactions) (0 assignés)Go (19 008 forks)batch import
DocumentationNeedsFixhelp wanted

Métriques du dépôt

Stars
 (133 883 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur