netgo

package
v0.0.0-...-565d680 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VERSION holds the current version number
	VERSION = "2.1"
	// GITHUB
	GITHUB = "https://github.com/whattheslime/NetGo"
)

Variables

This section is empty.

Functions

func RecvData

func RecvData(connReader *bufio.Reader, outWriter *bufio.Writer)

func SendData

func SendData(inReader *bufio.Reader)

Types

type Client

type Client struct {
	Conn   net.Conn
	Writer bufio.Writer
}

type NetObject

type NetObject struct {
	Type    string
	Service string
}

Network object

func (NetObject) RunClient

func (nObj NetObject) RunClient(
	cmd string, recv bool, send bool, proxy url.URL, isTls bool, cert string,
	key string)

Socket Client

func (NetObject) RunServer

func (nObj NetObject) RunServer(
	cmd string, keepOpen bool, maxConns int, recv bool, send bool,
	isTls bool, cert string, key string)

Socket Server

func (NetObject) TLSClient

func (nObj NetObject) TLSClient(conn net.Conn, cert string, key string) net.Conn

TLS Client

func (NetObject) TLSServer

func (nObj NetObject) TLSServer(cert string, key string) net.Listener

Jump to

Keyboard shortcuts

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