private void sendResponse ( Socket s , short opStatus , long timeout ) throws IOException { DataOutputStream reply = new DataOutputStream ( NetUtils . getOutputStream ( s , timeout ) ) ; reply . writeShort ( opStatus ) ; reply . flush ( ) ; }
Utility function for sending a response .