Versions in this module Expand all Collapse all v0 v0.1.2 Dec 5, 2022 v0.1.1 Dec 5, 2022 Changes in this version + const SERVER_COMM_TIMEOUT v0.1.0 Dec 5, 2022 Changes in this version + const BIND + const CONNECT + const MAX_MSG_SIZE + const TCP + const TCP4 + const TCP6 + const UDP + var ReadResponse func(io.Reader) (*Response, error) = ReadRequest + type Conn struct + func (c *Conn) Close() error + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) Read(p []byte) (int, error) + func (c *Conn) RemoteAddr() net.Addr + func (c *Conn) SetDeadline(deadline time.Time) error + func (c *Conn) SetReadDeadline(deadline time.Time) error + func (c *Conn) SetWriteDeadline(deadline time.Time) error + func (c *Conn) Write(p []byte) (int, error) + type Request struct + Address string + Command byte + NetworkType string + func ReadRequest(r io.Reader) (*Request, error) + func (r *Request) WriteTo(w io.Writer) (int64, error) + type Response = Request + type Server struct + Config *transportc.Config + ListenAddr string + func (s *Server) Start() error + func (s *Server) Stop() error + type Socks5Proxy struct + Config *transportc.Config + Timeout time.Duration + func (p *Socks5Proxy) Bind(dst net.Addr) (chanConn chan net.Conn, chanAddr chan net.Addr, err error) + func (p *Socks5Proxy) Connect(dst net.Addr) (conn net.Conn, addr net.Addr, err error) + func (p *Socks5Proxy) UDPAssociate() (ua socks5.UDPAssociation, err error) + type WebAnswer struct + Answer string + Expiry time.Time + OwnerUID uint64 + type WebSignalClient struct + BaseURL string + Password []byte + UserID uint64 + func (wsc *WebSignalClient) Answer(offerID uint64, answer []byte) error + func (wsc *WebSignalClient) GetAnswer(offerID uint64) (answer []byte, err error) + func (wsc *WebSignalClient) GetOffer() (offerID uint64, offerBody []byte, err error) + func (wsc *WebSignalClient) MakeOffer(offer []byte) (offerID uint64, err error) + type WebSignalServer struct + func NewWebSignalServer(passwords map[uint64][]byte, antiProbeHandler gin.HandlerFunc) (*WebSignalServer, error) + func (wss *WebSignalServer) AddPassword(uid uint64, password []byte) + func (wss *WebSignalServer) Answer(offerID uint64, answer []byte) error + func (wss *WebSignalServer) GetAnswer(offerID uint64) (answer []byte, err error) + func (wss *WebSignalServer) GetOffer() (offerID uint64, offerBody []byte, err error) + func (wss *WebSignalServer) Listen(addr string) + func (wss *WebSignalServer) MakeOffer(offer []byte) (offerID uint64, err error) + func (wss *WebSignalServer) RemovePassword(uid uint64)