Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Alex-Rachel/TGameServer
/ functions
Functions
162 in github.com/Alex-Rachel/TGameServer
⨍
Functions
162
◇
Types & classes
18
↓ 6 callers
Function
checkErr
(err error)
app/tserver/server.go:129
↓ 5 callers
Method
AddFunction
(funcName string, inter interface{})
app/tserver/controller.go:19
↓ 5 callers
Function
CheckLogin
(mainpack *GameProto.MainPack)
app/controllers/usercontroller.go:42
↓ 5 callers
Method
String
()
Gameproto/SocketGameProtocol.pb.go:461
↓ 3 callers
Method
Broadcast
(mainPack *GameProto.MainPack)
app/tserver/room.go:63
↓ 3 callers
Method
Call
(name string, params ...interface{})
app/tserver/controller.go:30
↓ 3 callers
Method
Stop
(uniid uint32)
app/tserver/tconn.go:169
↓ 3 callers
Function
checkNetErr
(err error, conn net.Conn)
app/tserver/server.go:136
↓ 2 callers
Function
AddClient
(client *Client)
app/tserver/server.go:90
↓ 2 callers
Method
HandleMsg
(data []byte, uniid uint32)
app/tserver/tconn.go:142
↓ 2 callers
Function
InstanceClient
(conn net.Conn, uniid uint32)
app/tserver/client.go:23
↓ 2 callers
Function
NewTask
(uniid uint32, msg []byte)
app/tserver/tconn.go:31
↓ 2 callers
Function
RemoveClient
(client *Client)
app/tserver/server.go:120
↓ 2 callers
Method
SendTCP
(mainpack *GameProto.MainPack)
app/tserver/client.go:32
↓ 2 callers
Function
handBuffer
(client *Client, buf []byte)
app/tserver/protomessage.go:46
↓ 2 callers
Function
sendBuffer
(client *Client, mainpack *GameProto.MainPack)
app/tserver/protomessage.go:67
↓ 1 callers
Function
Add
(values []interface{}, val interface{}, index int)
app/tserver/list.go:22
↓ 1 callers
Function
BroadcastStr
(line string)
app/tserver/cmd.go:47
↓ 1 callers
Method
BroadcastTCP
(client *Client, mainPack *GameProto.MainPack)
app/tserver/room.go:69
↓ 1 callers
Method
BroadcastUDP
(client *Client, mainPack *GameProto.MainPack)
app/tserver/room.go:85
↓ 1 callers
Function
BuildProto
(reqCode GameProto.RequestCode, action GameProto.ActionCode, retCode GameProto.ReturnCode)
app/tserver/protomessage.go:175
↓ 1 callers
Function
CreateRooms
()
app/tserver/room.go:19
↓ 1 callers
Method
Do
()
manager/workPool.go:7
↓ 1 callers
Function
GetClient
(clientName string)
app/tserver/server.go:100
↓ 1 callers
Function
HandleClientUdp
(conn *net.UDPConn)
app/tserver/udpserver.go:29
↓ 1 callers
Function
InitControllers
All Controllers Will Init On Here
main.go:20
↓ 1 callers
Function
InitGameController
()
app/controllers/gamecontroller.go:9
↓ 1 callers
Function
InitRoomController
()
app/controllers/roomcontroller.go:13
↓ 1 callers
Function
InitUserController
()
app/controllers/usercontroller.go:9
↓ 1 callers
Function
InstanceRoom
(roomPack *GameProto.RoomPack)
app/tserver/room.go:14
↓ 1 callers
Method
Join
(client *Client)
app/tserver/room.go:32
↓ 1 callers
Function
NewWorker
()
manager/workPool.go:15
↓ 1 callers
Function
Plot
挂起进程,防止销毁
manager/utils.go:10
↓ 1 callers
Function
RemoveC
(values []*Client, val *Client)
app/tserver/list.go:49
↓ 1 callers
Method
Run
(wq chan chan Job)
manager/workPool.go:18
↓ 1 callers
Method
SendMsgToWorker
(data []byte, uniid uint32)
app/tserver/tconn.go:146
↓ 1 callers
Method
SendUDP
(mainpack *GameProto.MainPack)
app/tserver/client.go:64
↓ 1 callers
Function
SetLogger
()
manager/utils.go:15
↓ 1 callers
Function
Start
(server Server)
app/tserver/server.go:31
↓ 1 callers
Method
StartOneWorker
(workerId int, queue chan *Task)
app/tserver/tconn.go:158
↓ 1 callers
Method
StartRead
(client *Client)
app/tserver/tconn.go:94
↓ 1 callers
Method
StartWorkerPool
()
app/tserver/tconn.go:152
↓ 1 callers
Method
StartWrite
(client *Client)
app/tserver/tconn.go:119
↓ 1 callers
Function
Testlog
()
manager/utils.go:20
↓ 1 callers
Method
UpPos
(mainpack *GameProto.MainPack)
app/tserver/client.go:83
↓ 1 callers
Function
handBufferUdp
(conn *net.UDPConn, remoteAddr *net.UDPAddr, buf []byte)
app/tserver/udpserver.go:45
↓ 1 callers
Function
handleClient
(conn net.Conn, uniid uint32)
app/tserver/server.go:68
↓ 1 callers
Function
handleReq
(client *Client, mainpack *GameProto.MainPack, isUdp bool)
app/tserver/controller.go:77
↓ 1 callers
Function
handleReqUdp
(client *Client, mainpack *GameProto.MainPack, isUdp bool)
app/tserver/controller.go:117
↓ 1 callers
Function
sendBufferUdp
(client *Client, mainpack *GameProto.MainPack)
app/tserver/protomessage.go:107
↓ 1 callers
Method
starting
(client *Client)
app/tserver/room.go:38
Function
CallEvent
(eventKey string, param interface{})
app/tserver/eventcenter.go:15
Function
Chat
(client *server.Client, mainpack *GameProto.MainPack, isUdp bool)
app/controllers/roomcontroller.go:21
Function
CreateRoom
(client *server.Client, mainpack *GameProto.MainPack, isUdp bool)
app/controllers/roomcontroller.go:38
Function
Delete
(values []interface{}, index int)
app/tserver/list.go:84
Method
Descriptor
()
Gameproto/SocketGameProtocol.pb.go:179
Method
Descriptor
()
Gameproto/SocketGameProtocol.pb.go:267
Method
Descriptor
()
Gameproto/SocketGameProtocol.pb.go:315
Method
Descriptor
()
Gameproto/SocketGameProtocol.pb.go:379
Method
Descriptor
()
Gameproto/SocketGameProtocol.pb.go:463
Method
EnumDescriptor
()
Gameproto/SocketGameProtocol.pb.go:51
Method
EnumDescriptor
()
Gameproto/SocketGameProtocol.pb.go:127
Method
EnumDescriptor
()
Gameproto/SocketGameProtocol.pb.go:158
Method
GetActioncode
()
Gameproto/SocketGameProtocol.pb.go:207
Method
GetAnimation
()
Gameproto/SocketGameProtocol.pb.go:533
Method
GetCurnum
()
Gameproto/SocketGameProtocol.pb.go:350
Method
GetDirt
()
Gameproto/SocketGameProtocol.pb.go:540
Method
GetGunRotZ
()
Gameproto/SocketGameProtocol.pb.go:526
Method
GetHp
()
Gameproto/SocketGameProtocol.pb.go:414
Method
GetLoginPack
()
Gameproto/SocketGameProtocol.pb.go:221
Method
GetMaxnum
()
Gameproto/SocketGameProtocol.pb.go:343
Method
GetMoveX
()
Gameproto/SocketGameProtocol.pb.go:547
Method
GetMoveY
()
Gameproto/SocketGameProtocol.pb.go:554
Method
GetMoveZ
()
Gameproto/SocketGameProtocol.pb.go:561
Method
GetPassword
()
Gameproto/SocketGameProtocol.pb.go:295
Method
GetPlayerAppearance
()
Gameproto/SocketGameProtocol.pb.go:435
Method
GetPlayerID
()
Gameproto/SocketGameProtocol.pb.go:407
Method
GetPlayerJob
()
Gameproto/SocketGameProtocol.pb.go:428
Method
GetPlayername
()
Gameproto/SocketGameProtocol.pb.go:400
Method
GetPlayerpack
()
Gameproto/SocketGameProtocol.pb.go:242
Method
GetPosPack
()
Gameproto/SocketGameProtocol.pb.go:421
Method
GetPosX
()
Gameproto/SocketGameProtocol.pb.go:484
Method
GetPosY
()
Gameproto/SocketGameProtocol.pb.go:491
Method
GetPosZ
()
Gameproto/SocketGameProtocol.pb.go:498
Method
GetRequestcode
()
Gameproto/SocketGameProtocol.pb.go:200
Method
GetReturncode
()
Gameproto/SocketGameProtocol.pb.go:214
Method
GetRoomname
()
Gameproto/SocketGameProtocol.pb.go:336
Method
GetRoompack
()
Gameproto/SocketGameProtocol.pb.go:235
Method
GetRotaX
()
Gameproto/SocketGameProtocol.pb.go:505
Method
GetRotaY
()
Gameproto/SocketGameProtocol.pb.go:512
Method
GetRotaZ
()
Gameproto/SocketGameProtocol.pb.go:519
Method
GetState
()
Gameproto/SocketGameProtocol.pb.go:357
Method
GetStr
()
Gameproto/SocketGameProtocol.pb.go:228
Method
GetUser
()
Gameproto/SocketGameProtocol.pb.go:249
Method
GetUsername
()
Gameproto/SocketGameProtocol.pb.go:288
Function
InstanceController
(name string, code GameProto.RequestCode)
app/tserver/controller.go:56
Function
JoinRoom
(client *server.Client, mainpack *GameProto.MainPack, isUdp bool)
app/controllers/roomcontroller.go:47
Function
ListenCMD
()
app/tserver/cmd.go:13
Function
Login
(client *server.Client, mainpack *GameProto.MainPack, isUdp bool)
app/controllers/usercontroller.go:17
Function
NewConn
(IP string, Port uint32, WorkerPoolSize uint32)
app/tserver/tconn.go:40
next →
1–100 of 162, ranked by callers