highway

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Request = 0
	Login   = 1
)

constants for request and login

View Source
const (
	//Name is a variable of type string which says about the protocol used
	Name = "highway"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionMgr

type ConnectionMgr struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

ConnectionMgr conn manage

func (*ConnectionMgr) DeactiveAllConn

func (connMgr *ConnectionMgr) DeactiveAllConn()

DeactiveAllConn close all conn

type HighwayConnection

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

HighwayConnection Highway connection

func (*HighwayConnection) Close

func (svrConn *HighwayConnection) Close()

Close connection

func (*HighwayConnection) GetRemoteAddr

func (svrConn *HighwayConnection) GetRemoteAddr() string

GetRemoteAddr Get remote addr

func (*HighwayConnection) Hello

func (svrConn *HighwayConnection) Hello() error

Hello handshake

func (*HighwayConnection) Open

func (svrConn *HighwayConnection) Open()

Open open service connection

Jump to

Keyboard shortcuts

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