static void write(SocketChannel chan,byte[] data) throws TimeoutException, IOException {
  write(chan,data,-1,DdmPreferences.getTimeOut());
}

static void write ( SocketChannel chan , byte [ ] data ) throws TimeoutException , IOException { write ( chan , data , - 1 , DdmPreferences . getTimeOut ( ) ) ; }
write until all data in " data " is written or the connection fails or times out . < p / > this uses the default time out value .
