structs

package
v0.0.0-...-dd4db30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdToNpid

func IdToNpid(id int) uint64

func NpidToId

func NpidToId(npid uint64) int

func StripPort

func StripPort(host string) string

Types

type ConnData

type ConnData struct {
	Id            int
	Npid          uint64
	Username      string
	RankId        int
	Authenticated bool
	Token         string
	IsServer      bool
	IsUnclean     bool
	LastCI        time.Time
	ConnectionId  int
	ServerId      uint64
	ServerAddr    string
	PresenceData  map[string]string
	Connection    net.Conn
	Valid         bool
}

type PacketData

type PacketData struct {
	Header  PacketHeader
	Content []byte
}

type PacketHeader

type PacketHeader struct {
	Signature uint32
	Length    uint32
	Type      uint32
	Id        uint32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL