/** * Converts numeric IPv6 to standard (non-compressed) format. */ public static String ipv6toStr(byte[] src) { assert src.length == 16; StringBuilder sb = new StringBuilder(39); ipv6toStr(sb, src, 0, 8); return sb.toString(); }
byte[] bytes = new byte[16]; byteBuf.readBytes(bytes); String host = SocksCommonUtils.ipv6toStr(bytes); int port = byteBuf.readUnsignedShort(); out.add(new SocksCmdRequest(cmdType, addressType, host, port));
byte[] bytes = new byte[16]; byteBuf.readBytes(bytes); String host = SocksCommonUtils.ipv6toStr(bytes); int port = byteBuf.readUnsignedShort(); out.add(new SocksCmdResponse(cmdStatus, addressType, host, port));
/** * Converts numeric IPv6 to standard (non-compressed) format. */ public static String ipv6toStr(byte[] src) { assert src.length == 16; StringBuilder sb = new StringBuilder(39); ipv6toStr(sb, src, 0, 8); return sb.toString(); }
/** * Converts numeric IPv6 to standard (non-compressed) format. */ public static String ipv6toStr(byte[] src) { assert src.length == 16; StringBuilder sb = new StringBuilder(39); ipv6toStr(sb, src, 0, 8); return sb.toString(); }
byte[] bytes = new byte[16]; byteBuf.readBytes(bytes); String host = SocksCommonUtils.ipv6toStr(bytes); int port = byteBuf.readUnsignedShort(); out.add(new SocksCmdResponse(cmdStatus, addressType, host, port));
byte[] bytes = new byte[16]; byteBuf.readBytes(bytes); String host = SocksCommonUtils.ipv6toStr(bytes); int port = byteBuf.readUnsignedShort(); out.add(new SocksCmdRequest(cmdType, addressType, host, port));
byte[] bytes = new byte[16]; byteBuf.readBytes(bytes); String host = SocksCommonUtils.ipv6toStr(bytes); int port = byteBuf.readUnsignedShort(); out.add(new SocksCmdRequest(cmdType, addressType, host, port));
byte[] bytes = new byte[16]; byteBuf.readBytes(bytes); String host = SocksCommonUtils.ipv6toStr(bytes); int port = byteBuf.readUnsignedShort(); out.add(new SocksCmdResponse(cmdStatus, addressType, host, port));