socket

package
v0.0.0-...-aadf7d6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package socket provides a net socket network

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransport

func NewTransport(opts ...network.Option) network.Transport

Types

type Client

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

func (*Client) Close

func (t *Client) Close() error

func (*Client) Local

func (t *Client) Local() string

func (*Client) Recv

func (t *Client) Recv(m *network.Message) error

func (*Client) Remote

func (t *Client) Remote() string

func (*Client) Send

func (t *Client) Send(m *network.Message) error

type Listener

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

func (*Listener) Accept

func (t *Listener) Accept(fn func(network.Socket)) error

func (*Listener) Addr

func (t *Listener) Addr() string

func (*Listener) Close

func (t *Listener) Close() error

type Socket

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

func (*Socket) Close

func (t *Socket) Close() error

func (*Socket) Local

func (t *Socket) Local() string

func (*Socket) Recv

func (t *Socket) Recv(m *network.Message) error

func (*Socket) Remote

func (t *Socket) Remote() string

func (*Socket) Send

func (t *Socket) Send(m *network.Message) error

Jump to

Keyboard shortcuts

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