Documentation ¶
Index ¶
- Constants
- type Packet
- type Socket
- func (s *Socket) Close()
- func (s *Socket) EnableCompression()
- func (s *Socket) Recv() ([]byte, error)
- func (s *Socket) Send(packet Packet)
- func (s *Socket) SendChan(packet Packet, done chan bool)
- func (s *Socket) SendRaw(data []byte)
- func (s *Socket) SendRawChan(data []byte, done chan bool)
- func (s *Socket) SendRawSync(data []byte)
- func (s *Socket) SendSync(packet Packet)
- func (s *Socket) StartSend()
Constants ¶
View Source
const ( Disconnected = -1 Handshaking = 0 Status = 1 Login = 2 Play = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Socket ¶
type Socket struct { net.Conn // the protocol state State int // contains filtered or unexported fields }
func (*Socket) EnableCompression ¶
func (s *Socket) EnableCompression()
func (*Socket) SendRawChan ¶
func (*Socket) SendRawSync ¶
Click to show internal directories.
Click to hide internal directories.