Skip to content

Commit a4524b6

Browse files
committed
- Updated structure
1 parent c8d74bd commit a4524b6

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

src/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Manifest-Version: 1.0
2-
Main-Class: com.cardan.client.cardanClient
2+
Main-Class: cardanClient
33

src/com/cardan/client/cardanClient.java renamed to src/cardanClient.java

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
package com.cardan.client;
2-
31
import java.io.*;
42
import java.net.*;
53
import java.util.ArrayList;
@@ -35,18 +33,18 @@ public class cardanClient
3533
public static void main(String[] args) {
3634
InetAddress destIP;
3735
int destPort = 22333;
38-
String strUrl = "";
39-
int desiredBytes = 1460;
40-
int desiredTimeout = 0;
41-
int total_bytes_successfully_sent = 0;
42-
Scanner scanner = new Scanner(System.in);
43-
java.util.ArrayList<UDPThread> threadArray = new ArrayList<>();
44-
45-
System.out.println("Welcome to the cardanClient group project");
46-
System.out.println("Please input desired web server \"w\", max number of bytes to send (less than 1460) " +
36+
String strUrl = "";
37+
int desiredBytes = 1460;
38+
int desiredTimeout = 0;
39+
int total_bytes_successfully_sent = 0;
40+
Scanner scanner = new Scanner(System.in);
41+
java.util.ArrayList<UDPThread> threadArray = new ArrayList<>();
42+
43+
System.out.println("Welcome to the cardanClient group project");
44+
System.out.println("Please input desired web server \"w\", max number of bytes to send (less than 1460) " +
4745
"\"x\", and desired timeout in seconds \"y\". Use the format: w x y ");
48-
System.out.println("Example: http://www.google.com 123 5");
49-
System.out.print("> ");
46+
System.out.println("Example: http://www.google.com 123 5");
47+
System.out.print("> ");
5048

5149
try{
5250
strUrl = scanner.next();
@@ -88,7 +86,6 @@ public static void main(String[] args) {
8886
reader = new BufferedReader(new InputStreamReader(con.getInputStream()));
8987
// Loop through the response and print it to the terminal
9088
while ((line = reader.readLine()) != null) {
91-
// todo: Use threading to do the next lines at the same time
9289
if(0 >= line.length()) {
9390
continue;
9491
}

0 commit comments

Comments
 (0)