private void encodeCommandResponse(Socks5CommandResponse msg, ByteBuf out) throws Exception { out.writeByte(msg.version().byteValue()); out.writeByte(msg.status().byteValue()); out.writeByte(0x00); final Socks5AddressType bndAddrType = msg.bndAddrType(); out.writeByte(bndAddrType.byteValue()); addressEncoder.encodeAddress(bndAddrType, msg.bndAddr(), out); out.writeShort(msg.bndPort()); } }
private void encodeCommandResponse(Socks5CommandResponse msg, ByteBuf out) throws Exception { out.writeByte(msg.version().byteValue()); out.writeByte(msg.status().byteValue()); out.writeByte(0x00); final Socks5AddressType bndAddrType = msg.bndAddrType(); out.writeByte(bndAddrType.byteValue()); addressEncoder.encodeAddress(bndAddrType, msg.bndAddr(), out); out.writeShort(msg.bndPort()); } }
private void encodeCommandResponse(Socks5CommandResponse msg, ByteBuf out) throws Exception { out.writeByte(msg.version().byteValue()); out.writeByte(msg.status().byteValue()); out.writeByte(0x00); final Socks5AddressType bndAddrType = msg.bndAddrType(); out.writeByte(bndAddrType.byteValue()); addressEncoder.encodeAddress(bndAddrType, msg.bndAddr(), out); out.writeShort(msg.bndPort()); } }