Package de.fhkn.in.uce.stun.attribute

Examples of de.fhkn.in.uce.stun.attribute.OtherAddress


        }
    }

    private void handleSimpleBindingRequest(final Message toHandle) throws Exception {
        final Message response = toHandle.buildSuccessResponse();
        final OtherAddress otherAddress = new OtherAddress(this.secondaryAddress);
        response.addAttribute(otherAddress);
        final XorMappedAddress clientAddress = this.getPublicClientAddressAsAttribute(toHandle);
        response.addAttribute(clientAddress);
        response.writeTo(this.socket.getOutputStream());
    }
View Full Code Here


    private InetSocketAddress getAlternateSTUNServerAddressFromMessage(final Message message) throws Exception {
        if (!message.hasAttribute(OtherAddress.class)) {
            throw new MessageFormatException("The required OTHER-ADDRESS attribute is not provided.");
        }
        final OtherAddress otherAddress = message.getAttribute(OtherAddress.class);
        return otherAddress.getEndpoint();
    }
View Full Code Here

TOP

Related Classes of de.fhkn.in.uce.stun.attribute.OtherAddress

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.