concon

package module
v0.0.0-...-aa18b63 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2017 License: MIT Imports: 4 Imported by: 0

README

Concon

GoDoc

Cancel blocking network Read and Write operations using context.Context

Documentation

Overview

Concon : Cancel blocking network Read and Write operations using context.Context

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn interface {
	ReadContext(ctx context.Context, b []byte) (n int, err error)
	WriteContext(ctx context.Context, b []byte) (n int, err error)
	Close() error
	LocalAddr() net.Addr
	RemoteAddr() net.Addr
}

Conn is a stream oriented network connection with i/o operations that are controlled by Contexts

func NewContextConn

func NewContextConn(nc net.Conn) Conn

NewContextConn returns a Conn given a net.Conn. The caller is not expected to use the *Timeout() methods on the underlying net.Conn after this.

Jump to

Keyboard shortcuts

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