@@ -0,0 +1,1781 @@
+//NOTE: This is the non-working part of the project, the InputStream between the MessageThreads are not connected.%0A%0Aimport java.net.*;%0Aimport java.io.*;%0Aimport java.util.*;%0A%0Apublic class MessageServer %7B%0A%0A    static final int PORT = 1234;%0A%0A    public static void main(String args%5B%5D) %7B%0A        ServerSocket serverSocket = null;%0A        Socket socket = null;%0A%0A        try %7B%0A            serverSocket = new ServerSocket(PORT);%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        while (true) %7B%0A            try %7B%0A                socket = serverSocket.accept();%0A            %7D catch (IOException e) %7B%0A                System.out.println(%22I/O error: %22 + e);%0A            %7D%0A            // new thread for a client%0A            new MessageThread(socket).start();%0A        %7D%0A    %7D%0A%7D%0A%0Aclass MessageThread extends Thread %7B%0A    protected Socket socket;%0A    public MessageThread(Socket clientSocket) %7B%0A        this.socket = clientSocket;%0A    %7D%0A    public void run() %7B%0A        InputStream inp = null;%0A        BufferedReader brinp = null;%0A        DataOutputStream out = null;%0A        try %7B%0A            inp = socket.getInputStream();%0A            brinp = new BufferedReader(new InputStreamReader(inp));%0A        %7D catch (IOException e) %7B%0A            return;%0A        %7D%0A        String line;%0A        while (true) %7B%0A            try %7B%0A                line = brinp.readLine();%0A                System.out.print(line + %22%5Cn%22);%0A                if ((line == null) %7C%7C line.equalsIgnoreCase(%22QUIT%22)) %7B%0A                    socket.close();%0A                    return;%0A                %7D else %7B%0A                    out.writeBytes(line + %22%5Cn%5Cr%22);%0A                    out.flush();%0A                %7D%0A            %7D catch (IOException e) %7B%0A                return;%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Create MessageServer.java