Documentation ¶
Index ¶
Constants ¶
View Source
const Version = 0x04
Variables ¶
View Source
var ( ErrRequestRejected = errors.New("request rejected or failed") ErrRequestIdentdFailed = errors.New("request rejected because SOCKS server cannot connect to identd on the client") ErrRequestIdentdMismatched = errors.New("request rejected because the client program and identd report different user-ids") ErrRequestUnknownCode = errors.New("request failed with unknown code") )
Functions ¶
func ClientHandshake ¶
Types ¶
type Command ¶
type Command = uint8
func ServerHandshake ¶
func ServerHandshake(rw io.ReadWriter, authenticator auth.Authenticator) (addr string, command Command, user string, err error)
Click to show internal directories.
Click to hide internal directories.