client

package
v0.0.0-...-5dba8c9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

客户端会话模块

Index

Constants

View Source
const (
	AUTH = iota
	CONNECTED
)

状态机状态表

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	Uid string
	// contains filtered or unexported fields
}

func NewInstance

func NewInstance(conn net.Conn, outchan chan *message.Container, onlinetable *onlinetable.Container) *Instance

新客户端会话创建

func (*Instance) Handler

func (ins *Instance) Handler()

func (*Instance) MainReadHandler

func (ins *Instance) MainReadHandler()

客户端TCP连接读routine

func (*Instance) MainWriteHandler

func (ins *Instance) MainWriteHandler()

客户端TCP连接写routine

Jump to

Keyboard shortcuts

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