MCPcopy Create free account
hub / github.com/0linlin0/CyberBox / download

Method download

Skay_Exp/src/tools/nc/NetcatClient.java:44–52  ·  view source on GitHub ↗

In download mode, client reads data from the socket and writes it to standard output. @throws Exception

()

Source from the content-addressed store, hash-verified

42 * @throws Exception
43 */
44 private static void download() throws Exception {
45 if (inFromServer == null) {
46 inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
47 }
48 String line;
49 while ((line = inFromServer.readLine()) != null) {
50 System.out.println(line);
51 }
52 }
53
54 /**
55 * In upload mode, client reads data from its standard input device and writes it to the socket.

Callers 1

startMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected