Documentation ¶ Index ¶ Variables type Socket func NewSocket(network, target string, delay int) (*Socket, error) func (s *Socket) Close() func (s *Socket) QuickRequest(data []byte, max int) ([]byte, error) func (s *Socket) Read(timeout int) ([]byte, error) func (s *Socket) Request(data []byte, max int) ([]byte, error) Constants ¶ This section is empty. Variables ¶ View Source var ProxyDialTimeout func(network, address string, timeout time.Duration) (net.Conn, error) Functions ¶ This section is empty. Types ¶ type Socket ¶ type Socket struct { Conn net.Conn Count int Timeout time.Duration } func NewSocket ¶ func NewSocket(network, target string, delay int) (*Socket, error) func (*Socket) Close ¶ func (s *Socket) Close() func (*Socket) QuickRequest ¶ func (s *Socket) QuickRequest(data []byte, max int) ([]byte, error) func (*Socket) Read ¶ func (s *Socket) Read(timeout int) ([]byte, error) func (*Socket) Request ¶ func (s *Socket) Request(data []byte, max int) ([]byte, error) Source Files ¶ View all Source files socket.go Click to show internal directories. Click to hide internal directories.