Package org.jwall.rbl.dns

Examples of org.jwall.rbl.dns.Response


        log.debug( "Received packet {}... size is {}", packet.getAddress() + ":" + packet.getPort(), packet.getLength() );
        byte[] data = packet.getData();
        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


        byte[] data = packet.getData();
        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

TOP

Related Classes of org.jwall.rbl.dns.Response

Copyright © 2018 www.massapicom. 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.