-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathCalculatorClient.java
More file actions
38 lines (29 loc) · 844 Bytes
/
Copy pathCalculatorClient.java
File metadata and controls
38 lines (29 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
public class CalculatorClient{
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int localPort, remotePort;
String remoteAddress;
CalculatorProtocolClient client;
ServiceUser user;
// check number of arguments
if (args.length == 3){
try{
// parse arguments
// create protocol entity
// create service user
// start entities
} catch (NumberFormatException nfe){
System.err.println("Erro formato nro porta");
}
} else{
System.err.println("Erro nro argumentos");
}
}
}