Package org.jwall.rbl.dns

Examples of org.jwall.rbl.dns.Response.toByteArray()


        log.debug( "Received packet of size {} bytes: {}", data.length, new String(data) );
       
        Query q = Query.parse( data, 0 );
        Response response = queryHandler.process( packet.getAddress(), q );

        byte[] re = response.toByteArray();
        DatagramPacket answer = new DatagramPacket( re, 0 );
        answer.setLength( re.length );
        answer.setAddress( packet.getAddress() );
        answer.setPort( packet.getPort() );
        socket.send( answer );
View Full Code Here


        Query q = Query.parse(data, 0);
        Response response = queryHandler
            .process(packet.getAddress(), q);

        byte[] re = response.toByteArray();
        DatagramPacket answer = new DatagramPacket(re, 0);
        answer.setLength(re.length);
        answer.setAddress(packet.getAddress());
        answer.setPort(packet.getPort());
        socket.send(answer);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.