port

package
v0.0.1-20230822-0001 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractIPAddress

func ExtractIPAddress(address string) string

func FilterAddress

func FilterAddress(address string) string

func GetFreeAddressPort

func GetFreeAddressPort(address string) *int

func IsBusy

func IsBusy(protocol string, address string) (bool, error)

func IsTCPBusy

func IsTCPBusy(address string) (bool, error)

IsTCPBusy -> checks if port is busy!

func IsUDPBusy

func IsUDPBusy(address string) (bool, error)

IsUDPBusy -> checks if port is busy!

func SearchAndLockFreeAddress

func SearchAndLockFreeAddress(protocol string, address string) (string, error)

func SearchAndLockFreeTCPAddress

func SearchAndLockFreeTCPAddress(address string) (string, error)

func SearchAndLockFreeUDPAddress

func SearchAndLockFreeUDPAddress(address string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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