Documentation
¶
Index ¶
Constants ¶
View Source
const ( NetworkTCP = 1 NetworkUDP = 3 )
View Source
const AuthenticateLen = 2 + 16 + 32
View Source
const (
CommandAuthenticate = 0
)
View Source
const (
Version = 0
)
Variables ¶
View Source
var AddressSerializer = metadata.NewSerializer( metadata.AddressFamilyByte(0x01, metadata.AddressFamilyIPv4), metadata.AddressFamilyByte(0x04, metadata.AddressFamilyIPv6), metadata.AddressFamilyByte(0x03, metadata.AddressFamilyFqdn), )
Juicity Specification tells us it is 0x01 for IPv4, 0x02 for IPv6, and 0x03 for domain, which is incorrect.
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 Service ¶
type Service[U comparable] struct { // contains filtered or unexported fields }
func NewService ¶
func NewService[U comparable](options ServiceOptions) (*Service[U], error)
func (*Service[U]) UpdateUsers ¶
type ServiceHandler ¶
type ServiceHandler interface {
network.TCPConnectionHandlerEx
network.UDPConnectionHandlerEx
}
type ServiceOptions ¶
Click to show internal directories.
Click to hide internal directories.