Documentation ¶
Index ¶
- Constants
- type ConnectedPing
- type ConnectedPong
- type ConnectionRequest
- type ConnectionRequestAccepted
- type IncompatibleProtocolVersion
- type NewIncomingConnection
- type OpenConnectionReply1
- type OpenConnectionReply2
- type OpenConnectionRequest1
- type OpenConnectionRequest2
- type UnconnectedPing
- type UnconnectedPong
Constants ¶
View Source
const ( IDConnectedPing byte = 0x00 IDUnconnectedPing byte = 0x01 IDUnconnectedPingOpenConnections byte = 0x02 IDConnectedPong byte = 0x03 IDDetectLostConnections byte = 0x04 IDOpenConnectionRequest1 byte = 0x05 IDOpenConnectionReply1 byte = 0x06 IDOpenConnectionRequest2 byte = 0x07 IDOpenConnectionReply2 byte = 0x08 IDConnectionRequest byte = 0x09 IDConnectionRequestAccepted byte = 0x10 IDNewIncomingConnection byte = 0x13 IDDisconnectNotification byte = 0x15 IDIncompatibleProtocolVersion byte = 0x19 IDUnconnectedPong byte = 0x1c )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectedPing ¶
type ConnectedPing struct {
ClientTimestamp int64
}
func (*ConnectedPing) Write ¶
func (pk *ConnectedPing) Write(buf *bytes.Buffer)
type ConnectedPong ¶
func (*ConnectedPong) Write ¶
func (pk *ConnectedPong) Write(buf *bytes.Buffer)
type ConnectionRequest ¶
func (*ConnectionRequest) Write ¶
func (pk *ConnectionRequest) Write(buf *bytes.Buffer)
type ConnectionRequestAccepted ¶
type ConnectionRequestAccepted struct { ClientAddress net.UDPAddr SystemAddresses [20]net.UDPAddr RequestTimestamp int64 AcceptedTimestamp int64 }
func (*ConnectionRequestAccepted) Read ¶
func (pk *ConnectionRequestAccepted) Read(buf *bytes.Buffer) error
func (*ConnectionRequestAccepted) Write ¶
func (pk *ConnectionRequestAccepted) Write(buf *bytes.Buffer)
type IncompatibleProtocolVersion ¶
func (*IncompatibleProtocolVersion) Read ¶
func (pk *IncompatibleProtocolVersion) Read(buf *bytes.Buffer) error
func (*IncompatibleProtocolVersion) Write ¶
func (pk *IncompatibleProtocolVersion) Write(buf *bytes.Buffer)
type NewIncomingConnection ¶
type NewIncomingConnection struct { ServerAddress net.UDPAddr SystemAddresses [20]net.UDPAddr RequestTimestamp int64 AcceptedTimestamp int64 }
func (*NewIncomingConnection) Write ¶
func (pk *NewIncomingConnection) Write(buf *bytes.Buffer)
type OpenConnectionReply1 ¶
type OpenConnectionReply1 struct { Magic [16]byte ServerGUID int64 Secure bool ServerPreferredMTUSize uint16 }
func (*OpenConnectionReply1) Write ¶
func (pk *OpenConnectionReply1) Write(buf *bytes.Buffer)
type OpenConnectionReply2 ¶
type OpenConnectionReply2 struct { Magic [16]byte ServerGUID int64 ClientAddress net.UDPAddr MTUSize uint16 Secure bool }
func (*OpenConnectionReply2) Write ¶
func (pk *OpenConnectionReply2) Write(buf *bytes.Buffer)
type OpenConnectionRequest1 ¶
func (*OpenConnectionRequest1) Read ¶
func (pk *OpenConnectionRequest1) Read(buf *bytes.Buffer) error
func (*OpenConnectionRequest1) Write ¶
func (pk *OpenConnectionRequest1) Write(buf *bytes.Buffer)
type OpenConnectionRequest2 ¶
type OpenConnectionRequest2 struct { Magic [16]byte ServerAddress net.UDPAddr ClientPreferredMTUSize uint16 ClientGUID int64 }
func (*OpenConnectionRequest2) Read ¶
func (pk *OpenConnectionRequest2) Read(buf *bytes.Buffer) error
func (*OpenConnectionRequest2) Write ¶
func (pk *OpenConnectionRequest2) Write(buf *bytes.Buffer)
type UnconnectedPing ¶
func (*UnconnectedPing) Write ¶
func (pk *UnconnectedPing) Write(buf *bytes.Buffer)
Source Files ¶
- connected_ping.go
- connected_pong.go
- connection_request.go
- connection_request_accepted.go
- incompatible_protocol_version.go
- new_incoming_connection.go
- open_connection_reply_1.go
- open_connection_reply_2.go
- open_connection_request_1.go
- open_connection_request_2.go
- packet.go
- unconnected_ping.go
- unconnected_pong.go
Click to show internal directories.
Click to hide internal directories.