【文件属性】:
文件名称:echo public static final int BUFSIZE = 4096;
文件大小:36KB
文件格式:DOC
更新时间:2011-12-26 15:17:59
public static final int BUFSIZE
// Chapter 5, Listing 3
public class EchoServer
{
// UDP port to which service is bound
public static final int SERVICE_PORT = 7;
// Max size of packet, large enough for almost any client
public static final int BUFSIZE = 4096;
// Socket used for reading and writing UDP packets
private DatagramSocket socket;