Package info.walnutstreet.vs.ps03v2.client.controller

Examples of info.walnutstreet.vs.ps03v2.client.controller.ConnectionController


   * @param socket Socket to communicate with the client.
   * @throws IOException
   * @throws NotBoundException
   */
  public ClientHandler(Socket socket) throws IOException, NotBoundException {
    this.cart = new ServerSideClientCart();
    this.socket = socket;
    this.outputStream = new ObjectOutputStream(socket.getOutputStream());
    this.inputStream = new ObjectInputStream(socket.getInputStream());
  }
View Full Code Here


     
      ServerSocket serverSocket = new ServerSocket(port);
      Server.logger.debug("Application-Server started on port " + port);
      while (true) {
        Socket socket = serverSocket.accept();
        ClientHandler handler = new ClientHandler(socket);
        handler.start();
      }
    } catch (NumberFormatException e) {
      Server.logger.error("Please specify a valid port!");
    }
  }
View Full Code Here

TOP

Related Classes of info.walnutstreet.vs.ps03v2.client.controller.ConnectionController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.