Versions in this module Expand all Collapse all v1 v1.19.0 Nov 25, 2023 Changes in this version + const Version + var ErrRequestIdentdFailed = errors.New("request rejected because SOCKS server cannot connect to identd on the client") + var ErrRequestIdentdMismatched = errors.New(...) + var ErrRequestRejected = errors.New("request rejected or failed") + var ErrRequestUnknownCode = errors.New("request failed with unknown code") + func ClientHandshake(rw io.ReadWriter, addr string, command Command, userID string) (err error) + type Code = uint8 + const RequestGranted + const RequestIdentdFailed + const RequestIdentdMismatched + const RequestRejected + type Command = uint8 + const CmdBind + const CmdConnect + func ServerHandshake(rw io.ReadWriter, authenticator auth.Authenticator) (addr string, command Command, err error)