sni

package
v0.0.0-...-b6e34ba Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_HEADER_SIZE = 16385

Variables

This section is empty.

Functions

func Sniff

func Sniff(conn net.Conn, readTimeout time.Duration) (net.Conn, string, error)

Sniff sniffs hostname from ClientHello message (if any), returns sni.Conn, filling it's Hostname field

Types

type Conn

type Conn struct {
	net.Conn //delegate
	// contains filtered or unexported fields
}

Conn delegates all calls to net.Conn, but Read to reader

func (Conn) Read

func (c Conn) Read(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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