loginserver

package
v0.0.0-...-3178871 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// For User login Process
	CM_PROTOCOL     = 2000
	CM_IDPASSWORD   = 2001
	CM_IDPASSWORD_2 = 22001

	CM_ADDNEWUSER     = 2002
	CM_CHANGEPASSWORD = 2003
	CM_UPDATEUSER     = 2004
	CM_SELECTSERVER   = 104

	SM_CERTIFICATION_FAIL  = 501
	SM_ID_NOTFOUND         = 502
	SM_PASSWD_FAIL         = 503
	SM_NEWID_SUCCESS       = 504
	SM_NEWID_FAIL          = 505
	SM_PASSOK_SELECTSERVER = 529
	SM_SELECTSERVER_OK     = 530

	// For Select Player Process
	CM_QUERYCHR = 100
	CM_NEWCHR   = 101
	CM_DELCHR   = 102
	CM_SELCHR   = 103

	SM_QUERYCHR       = 520
	SM_NEWCHR_SUCCESS = 521
	SM_NEWCHR_FAIL    = 522
	SM_DELCHR_SUCCESS = 523
	SM_DELCHR_FAIL    = 524
	SM_STARTPLAY      = 525
	SM_STARTFAIL      = 526
	SM_QUERYCHR_FAIL  = 527
)

Variables

View Source
var ErrNoLogin = errors.New("client no logined")

Functions

This section is empty.

Types

type LoginServer

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

func New

func New(opt *Option) *LoginServer

func (*LoginServer) Exit

func (s *LoginServer) Exit()

func (*LoginServer) Handle

func (s *LoginServer) Handle(socket net.Conn)

func (*LoginServer) Main

func (s *LoginServer) Main()

type Option

type Option struct {
	IsTest         bool
	Address        string
	DataSourceName string
	DriverName     string
}

Jump to

Keyboard shortcuts

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