I am new to Socket programming. So, I don't know that is there a way to send a message from one server to multiple clients using TCP. When I search for it, came to know, it is possible only by using DatagramSocket (UDP). Is it not possible by using TCP? Please correct me.
Here is my code, I don't know, how to do using pseudo code.
Socket theclient = null;
f = new File("E:/Examples/EVR.pdf");
filelength = f.length();
serverSocket = new ServerSocket(8888);
theclient = serverSocket.accept();
pout = new PrintWriter(theclient.getOutputStream(),true);