water
Class UDP

java.lang.Object
  extended by water.UDP
Direct Known Subclasses:
RPC.RemoteHandler, TimeLine, UDPAck, UDPAckAck, UDPBrokenPacket, UDPHeartbeat, UDPRebooted

public abstract class UDP
extends java.lang.Object

Do Something with an incoming UDP packet Classic Single Abstract Method pattern.


Nested Class Summary
static class UDP.udp
           
 
Constructor Summary
UDP()
           
 
Method Summary
static int get2(byte[] buf, int off)
           
static int get4(byte[] buf, int off)
           
static float get4f(byte[] buf, int off)
           
static long get8(byte[] buf, int off)
           
static double get8d(byte[] buf, int off)
           
 java.lang.String print16(AutoBuffer ab)
           
static java.lang.String printx16(long lo, long hi)
           
static int set2(byte[] buf, int off, short x)
           
static int set4(byte[] buf, int off, int x)
           
static int set4f(byte[] buf, int off, float f)
           
static int set8(byte[] buf, int off, long x)
           
static int set8d(byte[] buf, int off, double x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDP

public UDP()
Method Detail

print16

public java.lang.String print16(AutoBuffer ab)

printx16

public static java.lang.String printx16(long lo,
                                        long hi)

get2

public static int get2(byte[] buf,
                       int off)

get4

public static int get4(byte[] buf,
                       int off)

get8

public static long get8(byte[] buf,
                        int off)

get4f

public static float get4f(byte[] buf,
                          int off)

get8d

public static double get8d(byte[] buf,
                           int off)

set2

public static int set2(byte[] buf,
                       int off,
                       short x)

set4

public static int set4(byte[] buf,
                       int off,
                       int x)

set4f

public static int set4f(byte[] buf,
                        int off,
                        float f)

set8

public static int set8(byte[] buf,
                       int off,
                       long x)

set8d

public static int set8d(byte[] buf,
                        int off,
                        double x)