Documentation ¶
Overview ¶
Package socketfiles implements the "tcp:", "udp:", and "unix:" URL schemes.
Index ¶
Constants ¶
View Source
const ( FieldBufferSize = "buffer_size" FieldLocalAddress = "localaddr" FieldLocalPort = "localport" FieldMaxBitrate = "max_bitrate" FieldMaxPacketSize = "max_pkt_size" FieldPacketSize = "pkt_size" FieldTOS = "tos" FieldTTL = "ttl" )
URL query field keys.
Variables ¶
This section is empty.
Functions ¶
func WithIgnoreErrors ¶
WithIgnoreErrors means that a write to a given files.File will silently drop errors.
Requires the files.File to implement `interface{ IgnoreErrors(bool) bool }`, or else no action is taken.
Really only useful for writing to Broadcast or UDP addresses before they are opened by a listener.
func WithPacketSize ¶
WithPacketSize chunks each Write to a specified size.
Requires the files.File to implement `interface{ SetPacketSize(int) int }`, or else no action is taken.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.