cnet

package
v0.0.0-...-cee8920 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRWCConn

func NewRWCConn(rwc io.ReadWriteCloser) net.Conn

NewRWCConn converts a RWC into a net.Conn

func NewWebSocketConn

func NewWebSocketConn(websocketConn *websocket.Conn) net.Conn

NewWebSocketConn converts a websocket.Conn into a net.Conn

Types

type ConnCount

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

ConnCount is a connection counter

func (*ConnCount) Close

func (c *ConnCount) Close()

func (*ConnCount) New

func (c *ConnCount) New() int32

func (*ConnCount) Open

func (c *ConnCount) Open()

func (*ConnCount) String

func (c *ConnCount) String() string

Jump to

Keyboard shortcuts

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