Initial commit

This commit is contained in:
2024-01-14 12:22:14 +01:00
commit 9b47e374c7
24 changed files with 529 additions and 0 deletions

17
server/main.go Normal file
View File

@ -0,0 +1,17 @@
package main
import (
"server/core"
)
func main() {
server := core.New()
server.AddHandler(0, func(data []byte, client *core.Client) {
// count := data[1]
// fmt.Println(count)
server.SendTo(data, client)
})
server.Run(4242)
}