Improved network code
This commit is contained in:
13
server/login.go
Normal file
13
server/login.go
Normal file
@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"server/core"
|
||||
"server/packet"
|
||||
)
|
||||
|
||||
// login checks the account credentials and gives a network peer access to an account.
|
||||
func login(data []byte, client *core.Client) {
|
||||
fmt.Println("2 - login!")
|
||||
server.Send(packet.LOGIN, nil, client)
|
||||
}
|
Reference in New Issue
Block a user