Documentation
¶
Index ¶
Constants ¶
View Source
const MaxStreamCount = 6
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
Sockets map[string]*network.Socket
NetConn net.PacketConn
QuicConn *quic.Conn
OnAcceptSocket network.SocketCallbackFunc
OnSocketDisConnected network.SocketCallbackFunc
network.Config
ice.IceWorker
framework.CloseableObject
// contains filtered or unexported fields
}
func NewServerByAddress ¶
NewServerByAddress 创建新的服务实例,根据设置的地址监听
func (*Server) CloseSocket ¶
func (*Server) ConnectByIce ¶
func (s *Server) ConnectByIce(conn net.PacketConn)
func (*Server) StartListen ¶
func (s *Server) StartListen(onDisconnect network.SocketCallbackFunc)
Click to show internal directories.
Click to hide internal directories.