Package org.jnode.net

Examples of org.jnode.net.NoSuchProtocolException


     * Gets a registered transportlayer by its protocol ID.
     *
     * @param protocolID
     */
    public TransportLayer getTransportLayer(int protocolID) throws NoSuchProtocolException {
        throw new NoSuchProtocolException("protocol " + protocolID);
    }
View Full Code Here


     */
    public IPv4Protocol getProtocol(int protocolID) throws NoSuchProtocolException {
        final IPv4Protocol protocol;
        protocol = (IPv4Protocol) protocols.get(protocolID);
        if (protocol == null) {
            throw new NoSuchProtocolException("with ID " + protocolID);
        }
        return protocol;
    }
View Full Code Here

     * @throws NoSuchProtocolException
     */
    public NetworkLayer getNetworkLayer(int protocolID) throws NoSuchProtocolException {
        final NetworkLayer pt = (NetworkLayer) layers.get(Integer.valueOf(protocolID));
        if (pt == null) {
            throw new NoSuchProtocolException("protocolID " + protocolID);
        }
        return pt;
    }
View Full Code Here

TOP

Related Classes of org.jnode.net.NoSuchProtocolException

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.