Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMessageTruncated = errors.New("the packet is larger than the supplied buffer") ErrControlMessageTruncated = errors.New("the control message is larger than the supplied buffer") )
Functions ¶
func ParseFlagsForError ¶
ParseFlagsForError parses the message flags returned by the ReadMsgUDPAddrPort method and returns an error if MSG_TRUNC is set, indicating that the returned packet was truncated.
The check is skipped on Windows, because an error (WSAEMSGSIZE) is also returned when MSG_PARTIAL is set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.