Class SOCKSUDPWrapper

  • All Implemented Interfaces:
    Sink, Source

    public class SOCKSUDPWrapper
    extends Object
    implements Source, Sink
    Put a SOCKS header on a datagram Ref: RFC 1928
    Author:
    zzz
    • Method Detail

      • setSink

        public void setSink​(Sink sink)
        Specified by:
        setSink in interface Source
      • start

        public void start()
        Specified by:
        start in interface Source
      • send

        public void send​(Destination from,
                         byte[] data)
        Use the cached header, which should have the host string and port May throw RuntimeException from underlying sink
        Specified by:
        send in interface Sink
        Parameters:
        from - some implementations may ignore
        Throws:
        RuntimeException