boots

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: GPL-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	LocalHostIp              = "127.0.0.1"
	DefaultIp                = LocalHostIp
	DefaultPort       string = ":6829"
	DefaultClientPort        = 6829
	DefaultMsgType           = websocket.BinaryMessage
)

Variables

This section is empty.

Functions

func SetConnParam added in v1.0.5

func SetConnParam(conn *net.TCPConn)

设置Tcp参数

func SetWebSocketConnParam added in v1.0.5

func SetWebSocketConnParam(conn net.Conn)

设置Tcp参数

Types

type ServerBootStrap

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

func NewServerBootStrap

func NewServerBootStrap() (this *ServerBootStrap)

func (*ServerBootStrap) ChannelInitializer

func (bootStrap *ServerBootStrap) ChannelInitializer(channelInitializer channel.ChannelInitializer) (ret *ServerBootStrap)

func (*ServerBootStrap) Listen

func (bootStrap *ServerBootStrap) Listen() (err error)

func (*ServerBootStrap) Params

func (bootStrap *ServerBootStrap) Params(channelParams map[string]interface{}) (ret *ServerBootStrap)

func (*ServerBootStrap) Port

func (bootStrap *ServerBootStrap) Port(port string) (ret *ServerBootStrap)

type WSServerBootStrap

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

func NewWSServerBootStrap

func NewWSServerBootStrap() (this *WSServerBootStrap)

func (*WSServerBootStrap) ChannelInitializer

func (bootStrap *WSServerBootStrap) ChannelInitializer(channelInitializer channel.ChannelInitializer) (ret *WSServerBootStrap)

func (*WSServerBootStrap) Crt added in v1.0.8

func (bootStrap *WSServerBootStrap) Crt(crt string) (ret *WSServerBootStrap)

func (*WSServerBootStrap) Key added in v1.0.8

func (bootStrap *WSServerBootStrap) Key(key string) (ret *WSServerBootStrap)

func (*WSServerBootStrap) Listen

func (bootStrap *WSServerBootStrap) Listen()

func (*WSServerBootStrap) MsgType added in v1.0.15

func (bootStrap *WSServerBootStrap) MsgType(msgType int) (ret *WSServerBootStrap)

func (*WSServerBootStrap) Params

func (bootStrap *WSServerBootStrap) Params(channelParams map[string]interface{}) (ret *WSServerBootStrap)

func (*WSServerBootStrap) Port

func (bootStrap *WSServerBootStrap) Port(port string) (ret *WSServerBootStrap)

func (*WSServerBootStrap) SPort added in v1.0.8

func (bootStrap *WSServerBootStrap) SPort(port string) (ret *WSServerBootStrap)

func (*WSServerBootStrap) ServeHTTP

func (bootStrap *WSServerBootStrap) ServeHTTP(writer http.ResponseWriter, req *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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