question: protected void writeMessage ( ProtocolMessage msg ) throws IOException { oos . writeObject ( msg ) ; oos . flush ( ) ; objectsSent ++ ; if ( objectsSent >= resetPeriod ) { objectsSent = 0 ; oos . reset ( ) ; } }
target:  Write a message to the network from either side.