Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QUIC ¶
type QUIC struct {
// contains filtered or unexported fields
}
QUIC implements the Transport interface to establish connections to servers using the QUIC protocol. It maintains a single connection per server, optimizing dialing times and reducing connection overhead. By leveraging streams for individual server connections, it enhances overall performance and resource utilization.
type RakNet ¶
type RakNet struct{}
RakNet implements the Transport interface to establish connections to servers using the RakNet protocol.
type TCP ¶
type TCP struct{}
TCP implements the Transport interface to establish connections to servers using the TCP protocol.
type Transport ¶
type Transport interface { // Dial connects to the specified address and returns an io.ReadWriteCloser. // It returns an error if the connection cannot be established. Dial(addr string) (io.ReadWriteCloser, error) }
Transport defines an interface for establishing server connections.
Click to show internal directories.
Click to hide internal directories.