listener

package
v0.2.7-0...-d8d973c Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2017 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	service.ServiceInfo
	// contains filtered or unexported fields
}

func New

func New(network string, hostId uint64, lPort uint32, service string) *Listener

func (*Listener) Accept

func (self *Listener) Accept() (net.Conn, error)

func (*Listener) Addr

func (self *Listener) Addr() net.Addr

func (*Listener) Close

func (self *Listener) Close() error

func (*Listener) OnClose

func (self *Listener) OnClose(c func())

func (*Listener) Recv

func (self *Listener) Recv(op protocol.Op, upstream transport.Transport)

type NewConnRequest

type NewConnRequest struct {
	Transport transport.Transport
	HostId    uint64
	PortId    uint32
}

Jump to

Keyboard shortcuts

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