logo

/*. * To change this license header, choose License Hea

3 Pages469 Words309 Views
   

Added on  2019-09-16

/*. * To change this license header, choose License Hea

   Added on 2019-09-16

ShareRelated Documents
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */package test;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.io.PrintWriter;import java.net.ServerSocket;import java.net.Socket;/** * Support add, subtraction, multiplication, division * @author hluu * */public class MyServer { enum OPERATOR { ADD, SUB, MULT, DIV }; public static final int PORT_NO = 12345; /** * @param args * @throws IOException * @throws InterruptedException */ public static void main(String[] args) throws IOException, InterruptedException { ServerSocket serverSocket = new ServerSocket(PORT_NO); System.out.println("... server is accepting request"); while (true) {
/*. * To change this license header, choose License Hea_1

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Code for Proxy Cache Assignment - Desklib
|7
|1720
|105

Client Server System for Socket Programming | Desklib
|18
|1451
|253