Documentation
¶
Index ¶
- Constants
- func ReadUint64(stream io.Reader) (uint64, error)
- func SendAuth(stream io.Writer, authPeer AuthPeer) error
- func SendAuthResponse(stream io.Writer, response AuthPeerResponse) error
- func SendStatus(stream io.Writer, statusInfo PeerStatusInfo) error
- func WritePacketToBuf(buf, packet []byte) []byte
- type AuthPeer
- type AuthPeerResponse
- type PeerStatusInfo
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func SendAuthResponse ¶
func SendAuthResponse(stream io.Writer, response AuthPeerResponse) error
func SendStatus ¶
func SendStatus(stream io.Writer, statusInfo PeerStatusInfo) error
func WritePacketToBuf ¶ added in v0.11.0
Types ¶
type AuthPeerResponse ¶
func ReceiveAuthResponse ¶
func ReceiveAuthResponse(stream io.Reader) (AuthPeerResponse, error)
type PeerStatusInfo ¶
func ReceiveStatus ¶
func ReceiveStatus(stream io.Reader) (PeerStatusInfo, error)
Click to show internal directories.
Click to hide internal directories.