Documentation ¶
Index ¶
- type Kind
- type Session
- func (s *Session) AddConn(conn network.Conn)
- func (s *Session) Bind(cid, uid int64) error
- func (s *Session) Broadcast(kind Kind, msg []byte) (n int64, err error)
- func (s *Session) Close(kind Kind, target int64, force ...bool) error
- func (s *Session) Has(kind Kind, target int64) (ok bool, err error)
- func (s *Session) LocalAddr(kind Kind, target int64) (net.Addr, error)
- func (s *Session) LocalIP(kind Kind, target int64) (string, error)
- func (s *Session) Multicast(kind Kind, targets []int64, msg []byte) (n int64, err error)
- func (s *Session) Push(kind Kind, target int64, msg []byte) error
- func (s *Session) RemConn(conn network.Conn)
- func (s *Session) RemoteAddr(kind Kind, target int64) (net.Addr, error)
- func (s *Session) RemoteIP(kind Kind, target int64) (string, error)
- func (s *Session) Send(kind Kind, target int64, msg []byte) error
- func (s *Session) Stat(kind Kind) (int64, error)
- func (s *Session) Unbind(uid int64) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession() *Session
func (*Session) RemoteAddr ¶
RemoteAddr 获取远端地址
Click to show internal directories.
Click to hide internal directories.