udp

package
v0.0.0-...-b6e34ba Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

*

  • session.go - udp "session" *
  • @author Illarion Kovalchuk <illarion.kovalchuk@gmail.com>
  • @author Yaroslav Pogrebnyak <yyyaroslav@gmail.com>

Index

Constants

View Source
const UDP_PACKET_SIZE = 65507

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

*

  • UDP server implementation

func New

func New(name string, cfg config.Server) (*Server, error)

*

  • Creates new UDP server

func (*Server) Cfg

func (this *Server) Cfg() config.Server

*

  • Returns current server configuration

func (*Server) Start

func (this *Server) Start() error

*

  • Starts server

func (*Server) Stop

func (this *Server) Stop()

*

  • Stop, dropping all connections

Jump to

Keyboard shortcuts

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