All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.echocat.jomon.net.Protocol Maven / Gradle / Ivy

There is a newer version: 1.6.3
Show newest version
/*****************************************************************************************
 * *** BEGIN LICENSE BLOCK *****
 *
 * Version: MPL 2.0
 *
 * echocat Jomon, Copyright (c) 2012-2013 echocat
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * *** END LICENSE BLOCK *****
 ****************************************************************************************/

package org.echocat.jomon.net;

import javax.annotation.Nonnull;

@SuppressWarnings("ConstantNamingConvention")
public interface Protocol {

    public static final Protocol tcp = new Protocol() { @Nonnull @Override public String getName() {
        return "tcp";
    }};
    public static final Protocol udp = new Protocol() { @Nonnull @Override public String getName() {
        return "udp";
    }};

    @Nonnull
    public String getName();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy