Documentation
¶
Overview ¶
Package connqc contains the connqc server and client implementations, as well as the probe message encoder and decoder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client attempts to hold a connection with a server, sending probe messages at a configured interval.
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder decodes messages from a reader.
func NewDecoder ¶
NewDecoder returns a decoder for the given reader.
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder encodes messages onto a stream.
func NewEncoder ¶
NewEncoder returns an encoder with the given writer.
type Message ¶
type Message interface {
// contains filtered or unexported methods
}
Message represents a connqc message.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles connections from clients.
func (*Server) Serve ¶ added in v1.2.0
func (s *Server) Serve(conn net.PacketConn)
Serve handles a connection from a client.
The handler provides an identical response to every message it receives. The caller who initiated the connection is responsible for ensuring its closure.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
connqc
command
Package main is the entry point of the application.
|
Package main is the entry point of the application. |
|
internal
|
|
|
buffr
Package buffr provides a buffered reader.
|
Package buffr provides a buffered reader. |
|
Package tcp provides a TCP server implementation.
|
Package tcp provides a TCP server implementation. |
|
Package udp provides a UDP server implementation.
|
Package udp provides a UDP server implementation. |