public void send(String message){
  Log.v(TAG,"Send: " + message);
synchronized (rawSocketLock) {
    if (out == null) {
      reportError("Sending data on closed socket.");
      return;
    }
    out.write(message + "\n");
    out.flush();
  }
}

public void send ( String message ) { Log . v ( TAG , "Send: " + message ) ; synchronized ( rawSocketLock ) { if ( out == null ) { reportError ( "Sending data on closed socket." ) ; return ; } out . write ( message + "\n" ) ; out . flush ( ) ; } }
sends a message on the socket . should only be called on the executor thread .
