Documentation ¶
Index ¶
Constants ¶
View Source
const ( CommandAuthenticate = iota CommandConnect CommandPacket CommandDissociate CommandHeartbeat )
View Source
const AuthenticateLen = 2 + 16 + 32
View Source
const (
Version = 5
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options ClientOptions) (*Client, error)
func (*Client) CloseWithError ¶
func (*Client) ListenPacket ¶
type ClientOptions ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(options ServerOptions) (*Server, error)
type ServerHandler ¶
type ServerHandler interface { N.TCPConnectionHandler N.UDPConnectionHandler }
type ServerOptions ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.