golnet

package
v0.0.0-...-1bfd785 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TcpServerHalt = false
)

Functions

func IsHttpAvailable

func IsHttpAvailable(url string, timeoutInSecond int) bool

func IsPortClosed

func IsPortClosed(portNumber string) bool

func IsPortOpen

func IsPortOpen(portNumber string) bool

func TCPServer

func TCPServer(connection_string string, request_handler RequestParamFunc)

Types

type RequestParamFunc

type RequestParamFunc func(request []byte) (reply []byte)

type TCPClient

type TCPClient struct {
	Connection net.Conn
}

func CreateTCPClient

func CreateTCPClient(connection_string string) TCPClient

func (TCPClient) Request

func (client TCPClient) Request(send []byte) []byte

Jump to

Keyboard shortcuts

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