Socket和ServerSocket中的輸入和輸出流

Socket指的就是客戶端啦,java Socket socket = new Socket("localhost",8888); //此處的inputStream用來從鏈接中拿數據 InputStream inputStream = socket.getInputStream(); //此處的outputStream用來向鏈接中取數據 OutputStream outputStream = so
相關文章
相關標籤/搜索