public boolean sendViaDataSocket(byte[] bytes,int start,int len){
  if (dataOutputStream == null) {
    Log.i(TAG,"Can't send via null dataOutputStream");
    return false;
  }
  if (len == 0) {
    return true;
  }
  try {
    dataOutputStream.write(bytes,start,len);
  }
 catch (  IOException e) {
    Log.i(TAG,"Couldn't write output stream for data socket");
    Log.i(TAG,e.toString());
    return false;
  }
  localDataSocket.reportTraffic(len);
  return true;
}

public boolean sendViaDataSocket ( byte [ ] bytes , int start , int len ) { if ( dataOutputStream == null ) { Log . i ( TAG , "Can't send via null dataOutputStream" ) ; return false ; } if ( len == 0 ) { return true ; } try { dataOutputStream . write ( bytes , start , len ) ; } catch ( IOException e ) { Log . i ( TAG , "Couldn't write output stream for data socket" ) ; Log . i ( TAG , e . toString ( ) ) ; return false ; } localDataSocket . reportTraffic ( len ) ; return true ; }
sends a byte array over the already - established data socket
