()
| 72 | } |
| 73 | |
| 74 | public void run() { |
| 75 | byte bytesIn[] = new byte[BUFFER_SIZE]; |
| 76 | try { |
| 77 | Socket socketClient = ssAccepting.accept(); |
| 78 | InputStream in = socketClient.getInputStream(); |
| 79 | OutputStream out = socketClient.getOutputStream(); |
| 80 | int iLength, iCount = 0; |
| 81 | while ((iLength = in.read(bytesIn)) != -1) { |
| 82 | out.write(bytesIn, 0, iLength); |
| 83 | out.flush(); |
| 84 | iCount += iLength; |
| 85 | } |
| 86 | System.out.println("server processed " + iCount + " bytes"); |
| 87 | } catch (Exception e) { |
| 88 | e.printStackTrace(); |
| 89 | } |
| 90 | } |
| 91 | } |
nothing calls this directly
no test coverage detected