@Override public Socket connect(){
  Log.d(TAG,"Connecting to [" + address.getHostAddress() + "]:"+ Integer.toString(port));
  try {
    return new Socket(address,port);
  }
 catch (  IOException e) {
    reportError("Failed to connect: " + e.getMessage());
    return null;
  }
}

@ Override public Socket connect ( ) { Log . d ( TAG , "Connecting to [" + address . getHostAddress ( ) + "]:" + Integer . toString ( port ) ) ; try { return new Socket ( address , port ) ; } catch ( IOException e ) { reportError ( "Failed to connect: " + e . getMessage ( ) ) ; return null ; } }
connects to the peer .
