in my client whiteboard program:
PrintWriter o = new PrintWriter(soc.getOutputStream(),true);
//inside a function(mousedrag) in which ouput the mouse //coordinate continuously to my server:
o.println(s) //where s is a string of 2-pair-coordinates defined //previously with length <15
o.flush() //Q1:Is this line necessary?What's the difference/relationship betweeen o.println() and o.flush()?
Q2:When the server receive s,it sometimes appear double or even trible the lenght of s defined by my client program(4 to 6 pair of coordinates,but sometime it is 2 pair)Why?How can I resolve?