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()
Click to show internal directories.
Click to hide internal directories.