Class SOCKSHeader


  • public class SOCKSHeader
    extends Object
    Save the SOCKS header from a datagram Ref: RFC 1928
    Author:
    zzz
    • Constructor Detail

      • SOCKSHeader

        public SOCKSHeader​(byte[] data)
        Parameters:
        data - the whole packet
      • SOCKSHeader

        public SOCKSHeader​(Destination dest)
        Make a dummy header from a dest, for those cases where we want to receive unsolicited datagrams. Unused for now.
    • Method Detail

      • getHost

        public String getHost()
      • getBytes

        public byte[] getBytes()