Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSession ¶
type ServerConnection ¶
type ServerSession ¶
type ServerSession interface {
// Accept waits for and returns the next connection to the listener.
Accept() (ServerConnection, error)
Session
}
type Session ¶
type Session interface {
ID() uint64
OnStreamOpen(uint64)
OnStreamClose(uint64, int)
GetStream(uint64) Stream
StreamPacket(*Packet)
// Addr returns the listener's network address.
Addr() net.Addr
// Close closes the listener.
// Any blocked Accept operations will be unblocked and return errors.
Close() error
IsClosed() bool
}
Click to show internal directories.
Click to hide internal directories.