Documentation ¶
Index ¶
- Variables
- type CID
- type Conn
- func (c *Conn) Broadcast(from SID) adc.WriteStream
- func (c *Conn) Close() error
- func (c *Conn) Flush() error
- func (c *Conn) GetKeyPrints() []string
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) OnLineR(fnc func(line []byte) (bool, error))
- func (c *Conn) OnLineW(fnc func(line []byte) (bool, error))
- func (c *Conn) ReadClientMsg(deadline time.Time) (adc.Message, error)
- func (c *Conn) ReadInfoMsg(deadline time.Time) (adc.Message, error)
- func (c *Conn) ReadPacket(deadline time.Time) (adc.Packet, error)
- func (c *Conn) ReadPacketRaw(deadline time.Time) (adc.Packet, error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetWriteDeadline(t time.Time) error
- func (c *Conn) SetWriteTimeout(dt time.Duration)
- func (c *Conn) WriteBroadcast(id SID, msg adc.Message) error
- func (c *Conn) WriteClientMsg(msg adc.Message) error
- func (c *Conn) WriteDirect(id, targ SID, msg adc.Message) error
- func (c *Conn) WriteEcho(id, targ SID, msg adc.Message) error
- func (c *Conn) WriteHubMsg(msg adc.Message) error
- func (c *Conn) WriteInfoMsg(msg adc.Message) error
- func (c *Conn) WriteKeepAlive() error
- func (c *Conn) WritePacket(p adc.Packet) error
- func (c *Conn) ZOn(lvl int) error
- type PID
- type PingConfig
- type PingHubInfo
- type SID
- type TTH
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Debug bool
)
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn is an ADC protocol connection.
func DialContext ¶
DialContext connects to a specified address.
func (*Conn) GetKeyPrints ¶ added in v0.25.0
GetKeyPrints returns keyprints set by TLS, if any.
func (*Conn) ReadPacket ¶
ReadPacket reads and decodes a single ADC command.
func (*Conn) ReadPacketRaw ¶ added in v0.25.0
ReadPacketRaw reads and decodes a single ADC command. Caller must copy the payload.
func (*Conn) RemoteAddr ¶
func (*Conn) SetWriteTimeout ¶ added in v0.16.4
func (*Conn) WriteKeepAlive ¶ added in v0.16.4
type PingConfig ¶ added in v0.8.12
type PingHubInfo ¶
func Ping ¶
func Ping(ctx context.Context, addr string, conf PingConfig) (*PingHubInfo, error)
Click to show internal directories.
Click to hide internal directories.