goProject/trunk/game/common/clientMgr/interface.go
2025-01-15 17:36:12 +08:00

34 lines
520 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package clientMgr
import . "common/model"
// IClient 客户端连接接口
type IClient interface {
// GetId 获取客户端对象的唯一标识
GetId() int32
// 获取玩家Id
GetPlayerId() int64
// 玩家登录
PlayerLogin(int64)
// 发送数据
SendMessage(*ServerResponseObject)
// 清空待发送数据
ClearSendData()
// 客户端活跃
Active()
// 获取远程地址IP_Port
GetRemoteAddr() string
// 客户端连接超时
Expired() bool
// 客户端连接对象断开
Close()
}