edu.nyu.cs.pdsg.discovery
Class DiscoveryConstants

java.lang.Object
  extended byedu.nyu.cs.pdsg.discovery.DiscoveryConstants

public class DiscoveryConstants
extends java.lang.Object


Field Summary
static int DEFAULT_ADVERTISING_PORT
           
static int DEFAULT_REQUEST_PORT
           
static int PACKET_LENGTH
           
static int WAIT_TIME
           
static int WAIT_TIME2
           
 
Constructor Summary
private DiscoveryConstants()
           
 
Method Summary
static java.lang.Object deserializeByteArrayToObject(byte[] buffer)
           
static java.net.InetAddress getBroadcastAddress()
           
static byte[] serializeObjectToByteArray(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_REQUEST_PORT

public static final int DEFAULT_REQUEST_PORT
See Also:
Constant Field Values

DEFAULT_ADVERTISING_PORT

public static final int DEFAULT_ADVERTISING_PORT
See Also:
Constant Field Values

PACKET_LENGTH

public static final int PACKET_LENGTH
See Also:
Constant Field Values

WAIT_TIME

public static final int WAIT_TIME
See Also:
Constant Field Values

WAIT_TIME2

public static final int WAIT_TIME2
See Also:
Constant Field Values
Constructor Detail

DiscoveryConstants

private DiscoveryConstants()
Method Detail

serializeObjectToByteArray

public static byte[] serializeObjectToByteArray(java.lang.Object o)
                                         throws java.io.IOException
Throws:
java.io.IOException

deserializeByteArrayToObject

public static java.lang.Object deserializeByteArrayToObject(byte[] buffer)
                                                     throws java.io.IOException,
                                                            java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

getBroadcastAddress

public static java.net.InetAddress getBroadcastAddress()
                                                throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException


Copyright (c) 2002-2003 New York University RLAB