Package de.fhkn.in.uce.mediator.peerregistry

Examples of de.fhkn.in.uce.mediator.peerregistry.Endpoint


        return result;
    }

    private Endpoint getPublicEndpointFromSocket(final Socket socket) {
        final InetSocketAddress publicAddress = new InetSocketAddress(socket.getInetAddress(), socket.getPort());
        return new Endpoint(publicAddress, EndpointCategory.PUBLIC);
    }
View Full Code Here


        final XorMappedAddress address = registerMessage.getAttribute(XorMappedAddress.class);
        EndpointCategory category = EndpointCategory.PRIVATE;
        if (registerMessage.hasAttribute(EndpointClass.class)) {
            category = registerMessage.getAttribute(EndpointClass.class).getEndpointCategory();
        }
        return new Endpoint(address.getEndpoint(), category);
    }
View Full Code Here

TOP

Related Classes of de.fhkn.in.uce.mediator.peerregistry.Endpoint

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.