socketfiles

package
v0.2.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: LGPL-3.0 Imports: 13 Imported by: 2

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

func WithIgnoreErrors(state bool) files.Option

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

func WithPacketSize(sz int) files.Option

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL