Package net.windwards.dnsfrontend.api

Examples of net.windwards.dnsfrontend.api.Sender


        Message message = Message.newQuery(Record.newRecord(new Name("foo.example.com."), Type.A, DClass.IN));
        return getQuery(replies, message);
    }

    public static Query getQuery(final List<Message> replies, Message message) throws UnknownHostException {
        Sender sender = new Sender() {
            @Override
            public void send(byte[] data, InetSocketAddress recipient) throws IOException {
                replies.add(new Message(data));
            }
        };
View Full Code Here

TOP

Related Classes of net.windwards.dnsfrontend.api.Sender

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.