PPT Slide
Java Server III…
public class SimpGenServer {
public static void main(String a[]) throws IOException {
int q_len = 6;
int port = 3456;
Socket sock;
ServerSocket servsock = new ServerSocket(port, q_len);
while (true) {
// wait for the next client connection:
sock = servsock.accept();
new Worker (sock).start();
}
}
}
Previous slide
Next slide
Back to first slide
View graphic version