question: private void sendTcpRequest ( Socket socket , String request ) throws ApiException { try { LogUtils . LOGD ( TAG , "Sending request via TCP: " + request ) ; BufferedWriter writer = new BufferedWriter ( new OutputStreamWriter ( socket . getOutputStream ( ) ) ) ; writer . write ( request ) ; writer . flush ( ) ; } catch ( Exception e ) { LogUtils . LOGW ( TAG , "Failed to send TCP request." , e ) ; disconnect ( ) ; throw new ApiException ( ApiException . IO_EXCEPTION_WHILE_SENDING_REQUEST , e ) ; } }
target:  Send a TCP request