Files
EdgeNode/internal/nodes/client_conn_interface.go

21 lines
444 B
Go
Raw Normal View History

2021-12-12 11:48:01 +08:00
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package nodes
type ClientConnInterface interface {
// IsClosed 是否已关闭
IsClosed() bool
// IsBound 是否已绑定服务
IsBound() bool
// Bind 绑定服务
Bind(serverId int64, remoteAddr string, maxConnsPerServer int, maxConnsPerIP int) bool
2022-07-05 20:37:00 +08:00
// ServerId 获取服务ID
ServerId() int64
// SetServerId 设置服务ID
SetServerId(serverId int64)
2021-12-12 11:48:01 +08:00
}