tcp

package
v0.0.0-...-a208e16 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

func (*Conn) Read

func (c *Conn) Read(b []byte) (n int, err error)

Read implements the net.Conn Read method.

func (*Conn) SetDeadline

func (c *Conn) SetDeadline(t time.Time)

SetDeadline implements the net.Conn SetDeadline method.

func (*Conn) SetReadDeadline

func (c *Conn) SetReadDeadline(t time.Time)

SetReadDeadline implements the net.Conn SetReadDeadline method.

func (*Conn) SetWriteDeadline

func (c *Conn) SetWriteDeadline(t time.Time)

SetWriteDeadline implements the net.Conn SetWriteDeadline method.

func (*Conn) State

func (conn *Conn) State() string

State returns the name of the TCP state that conn is currently in.

func (*Conn) Write

func (c *Conn) Write(b []byte) (n int, err error)

Write implements the net.Conn Write method.

type IPv4Host

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

IPv4Host ... the zero value is not a valid IPv4Host

func NewIPv4Host

func NewIPv4Host(iphost net.IPv4Host) (*IPv4Host, error)

type Listener

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

func (*Listener) AcceptTCP

func (l *Listener) AcceptTCP() (*Conn, error)

func (*Listener) Close

func (l *Listener) Close() error

type Port

type Port uint16

Port represents a TCP port.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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