tuwien.auto.eicl.util

Class Util


public class Util
extends java.lang.Object

This class contains utility methods for the Calimero API. These methods are needed in multiple classes.

Method Summary

static String
getStatusString(short _Status)
Parses the error strings and returns a huam readable string representation
static MulticastSocket
openNextPort()
This method opens a new socket on a port.

Method Details

getStatusString

public static String getStatusString(short _Status)
Parses the error strings and returns a huam readable string representation
Parameters:
_Status - the error status
Returns:
A human readable error string.

openNextPort

public static MulticastSocket openNextPort()
This method opens a new socket on a port. The portnumber is incremented from the startport.
Returns:
the opened multicastsocket