Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn is a connection to a server. It is used to read and write packets to the server, and to manage the connection to the server.
func NewConn ¶
func NewConn(conn io.ReadWriteCloser, pool packet.Pool) *Conn
NewConn creates a new Conn with the conn and pool passed.
func (*Conn) Connect ¶ added in v0.0.13
Connect send a connection request to the server with the client and token passed. It returns an error if the server doesn't respond.
func (*Conn) ReadPacket ¶
ReadPacket reads a packet from the connection. It returns the packet read, or an error if the packet could not be read.
type StaticDiscovery ¶
type StaticDiscovery struct {
// contains filtered or unexported fields
}
func NewStaticDiscovery ¶
func NewStaticDiscovery(server string) *StaticDiscovery
Click to show internal directories.
Click to hide internal directories.