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

com.addc.commons.slp.SLPConstants Maven / Gradle / Ivy

Go to download

The addc-slp library supplies client classes for registering objects with a Service Location Protocol Daemon and for looking theses objects up later.

There is a newer version: 2.6
Show newest version
package com.addc.commons.slp;

public final class SLPConstants {

    /**
     * No port
     */
    public static final int NO_PORT= 0;
    /**
     * No lifetime
     */
    public static final int LIFETIME_NONE= 0;
    /**
     * Default lifetime
     */
    public static final int LIFETIME_DEFAULT= 10800;
    /**
     * Maximum lifetime
     */
    public static final int LIFETIME_MAXIMUM= 65535;
    /**
     * Permanent entry
     */
    public static final int LIFETIME_PERMANENT= -1;
    /**
     * The locale is not supported
     */
    public static final int LANGUAGE_NOT_SUPPORTED= 1;
    /**
     * Parser failure
     */
    public static final int PARSE_ERROR= 2;
    /**
     * Invalid service registration
     */
    public static final int INVALID_REGISTRATION= 3;
    /**
     * Invalid scope name.
     */
    public static final int SCOPE_NOT_SUPPORTED= 4;
    /**
     * No authentication supported
     */
    public static final int AUTHENTICATION_ABSENT= 6;
    /**
     * Authentication failed
     */
    public static final int AUTHENTICATION_FAILED= 7;
    /**
     * An update request was invalid
     */
    public static final int INVALID_UPDATE= 13;
    /**
     * A refresh request was rejected
     */
    public static final int REFRESH_REJECTED= 15;
    /**
     * The function is not implemented
     */
    public static final int NOT_IMPLEMENTED= 16;
    /**
     * Network initialisation failed
     */
    public static final int NETWORK_INIT_FAILED= 17;
    /**
     * Network timeout
     */
    public static final int NETWORK_TIMED_OUT= 18;
    /**
     * Network error
     */
    public static final int NETWORK_ERROR= 19;
    /**
     * Internal error
     */
    public static final int INTERNAL_SYSTEM_ERROR= 20;
    /**
     * Invalid type passed
     */
    public static final int TYPE_ERROR= 21;
    /**
     * Buffer overflow.
     */
    public static final int BUFFER_OVERFLOW= 22;
    
    public static final int SRVRQST= 1;
    public static final int SRVRPLY= 2;
    public static final int SRVREG= 3;
    public static final byte SRVDEREG= 4;
    public static final int SRVACK= 5;
    public static final int ATTRRQST= 6;
    public static final int ATTRRPLY= 7;
    public static final int DAADVERT= 8;
    public static final int SRVTYPERQST= 9;
    public static final int SRVTYPERPLY= 10;
    public static final int SAADVERT= 11;
    
    public static final int SLP_RESERVED_PORT= 427;
    public static final String SLP_MCAST_ADDRESS= "239.255.255.253";
    public static final String SLP_DA_TYPE= "service:directory-agent";
    public static final String SLP_SA_TYPE= "service:service-agent";

    private SLPConstants() {
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy