Documentation ¶
Index ¶
- Constants
- Variables
- func Dial(network, address string, ifi *string, timeout time.Duration, ...) (net.Conn, error)
- func ExtractHostAndPort(hostport string, defaultPort int) (string, int, error)
- func GetDialer(network string, ifi *string, timeout time.Duration, keepAlive time.Duration) (*net.Dialer, error)
- func GetInferfaceDefaultAddr(name, network string) (ip net.Addr, err error)
- func Max(a, b int) int
- func Min(a, b int) int
- func Min64(x, y int64) int64
- func ParallelDialWithDialer(ctx context.Context, dialer Dialer, network, addr string, races int) (net.Conn, error)
- func ParseIPZone(s string) (net.IP, string)
- func Program_dbg_full_log(args ...interface{})
- func ReadDP(conn net.Conn) ([]byte, error)
- func StringQuote(str *string) string
- func WriteDP(conn net.Conn, p []byte, clients ...*net.Addr) error
- type DialFn
- type Dialer
- type EPRing
- type Endpoint
- type HTTPSContext
- type RegisteredServer
- type TLSContext
- type TLSContextDial
Constants ¶
View Source
const ( MinDNSPacketSize = 12 + 5 MaxDNSPacketSize = dns.MaxMsgSize MaxDNSUDPPacketSize = dns.DefaultMsgSize MaxDNSUDPSafePacketSize = 1252 STAR = "*" Delimiter = ";" )
View Source
const Program_dbg_full = false
only if deep debug e.g. raw msg dumping
Variables ¶
View Source
var AppVersion = "dev-X"
View Source
var ErrInferfaceIsDown error = errors.New("specified inferface is down")
View Source
var ErrUnknownOptType error = errors.New("unsupported opts for Dial")
Functions ¶
func ExtractHostAndPort ¶
func GetInferfaceDefaultAddr ¶
func ParallelDialWithDialer ¶
func ParallelDialWithDialer(ctx context.Context, dialer Dialer, network, addr string, races int) (net.Conn, error)
memory grows; await on goose's fixing
func Program_dbg_full_log ¶
func Program_dbg_full_log(args ...interface{})
func StringQuote ¶
Types ¶
type EPRing ¶
func LinkEPRing ¶
type Endpoint ¶
func ResolveEndpoint ¶
type HTTPSContext ¶ added in v1.1.10
type HTTPSContext struct { *TLSContext Tag *string //redundant key; for cm.key() & connectMethodKey mod }
soul of HTTPS
func (*HTTPSContext) Value ¶ added in v1.1.10
func (c *HTTPSContext) Value(key interface{}) interface{}
func (*HTTPSContext) WithContext ¶ added in v1.1.10
func (c *HTTPSContext) WithContext(inner context.Context) context.Context
type RegisteredServer ¶
type RegisteredServer struct { Name string Stamp *stamps.ServerStamp }
type TLSContext ¶
type TLSContext struct { context.Context TLSContextDial }
func (*TLSContext) Value ¶ added in v1.1.10
func (c *TLSContext) Value(key interface{}) interface{}
Click to show internal directories.
Click to hide internal directories.