iomux

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package iomux provides simple goroutine safe I/O primitives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Socket

type Socket struct {
	// contains filtered or unexported fields
}

func (*Socket) Read

func (sck *Socket) Read(p []byte) (int, error)

func (*Socket) Recv

func (sck *Socket) Recv() ([]byte, error)

func (*Socket) Send

func (sck *Socket) Send(p []byte) error

func (*Socket) Write

func (sck *Socket) Write(p []byte) (int, error)

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer is a goroutine-safe io.Writer.

func NewWriter

func NewWriter(w io.Writer) *Writer

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) String

func (w *Writer) String() string

func (*Writer) Write

func (w *Writer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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