server

package
v0.0.0-...-112ff1b Latest Latest
Warning

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

Go to latest
Published: May 28, 2014 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(server *Server, connection *net.TCPConn, connectionId uint32) *Client

func (*Client) Account

func (c *Client) Account() *models.Account

func (*Client) ClientState

func (c *Client) ClientState() constants.ClientState

func (*Client) ClientVersion

func (c *Client) ClientVersion() constants.ClientVersion

func (*Client) Connection

func (c *Client) Connection() interfaces.LimitedConnection

Methods to satisfy interfaces.Client

func (*Client) ConnectionID

func (c *Client) ConnectionID() uint32

func (*Client) LastPingTime

func (c *Client) LastPingTime() time.Time

func (*Client) Logger

func (c *Client) Logger() interfaces.Logger

func (*Client) MarkPingTime

func (c *Client) MarkPingTime()

func (*Client) Send

func (c *Client) Send(p interfaces.Packet) error

func (*Client) Server

func (c *Client) Server() interfaces.Server

func (*Client) SessionID

func (c *Client) SessionID() uint16

func (*Client) SetAccount

func (c *Client) SetAccount(account *models.Account)

func (*Client) SetClientState

func (c *Client) SetClientState(state constants.ClientState)

func (*Client) SetClientVersion

func (c *Client) SetClientVersion(version constants.ClientVersion)

func (*Client) SetSessionID

func (c *Client) SetSessionID(id uint16)

func (*Client) Start

func (c *Client) Start()

func (*Client) Stop

func (c *Client) Stop()

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(path string) (*Config, error)

func (*Config) GetAsBoolean

func (c *Config) GetAsBoolean(spec string) (bool, error)

func (*Config) GetAsFloat

func (c *Config) GetAsFloat(spec string) (float64, error)

func (*Config) GetAsInteger

func (c *Config) GetAsInteger(spec string) (int64, error)

func (*Config) GetAsManyFloats

func (c *Config) GetAsManyFloats(spec string) ([]float64, error)

func (*Config) GetAsManyIntegers

func (c *Config) GetAsManyIntegers(spec string) ([]int64, error)

func (*Config) GetAsManyStrings

func (c *Config) GetAsManyStrings(spec string) ([]string, error)

func (*Config) GetAsString

func (c *Config) GetAsString(spec string) (string, error)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(config *Config) *Server

func (*Server) Config

func (s *Server) Config() interfaces.Config

Methods to satisfy interfaces.Server

func (*Server) Database

func (s *Server) Database() interfaces.Database

func (*Server) RemoveClient

func (s *Server) RemoveClient(c *Client)

func (*Server) Ruleset

func (s *Server) Ruleset() interfaces.Ruleset

func (*Server) ScriptExecutor

func (s *Server) ScriptExecutor() interfaces.ScriptExecutor

func (*Server) SendUDP

func (s *Server) SendUDP(c *Client, p interfaces.Packet) error

func (*Server) ShortName

func (s *Server) ShortName() string

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop()

func (*Server) World

func (s *Server) World() interfaces.World

Jump to

Keyboard shortcuts

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