////////////////////////////////////////////////////////////////////// // SPONConstants.java // // -- Constants across the SPON Network -- // // // // Supervised Peer-to-peer Overlay Network (SPON) Simulator // // // // Computer Science Independent Study Project // // Programmed by: Peter Keeler // // // // Research Advisor: Christian Scheideler // // Computer Science // // Johns Hopkins University // ////////////////////////////////////////////////////////////////////// public class SPONConstants { public static int JOIN = 0x0001; public static int JOINCONF = 0x0002; public static int LOCATE = 0x0004; public static int LOCNOT = 0x0008; public static int LOCCONF = 0x0010; public static int MESSAGE = 0x0100; public static int MESSCONF = 0x0200; public static int SUPERMESS = 0x0400; public static int REMOVE = 0x0800; public static int SPONSOCKETNO = 7766; public static int PACKETSIZE = 4112; // 4 KB packets public static int WINDOWSIZE = 10000; public static int PACKMAX = 4000; public static int STRINGTYPE = 1; }