|
static void | main (String[] args) |
|
Definition at line 4 of file DailyAdviceClient.java.
◆ go()
void DailyAdviceClient.go |
( |
| ) |
|
|
inline |
Definition at line 7 of file DailyAdviceClient.java.
7 {
8 try {
9 sock = new Socket("127.0.0.1", 5000);
10 InputStreamReader streamReader = new InputStreamReader(sock.getInputStream());
11 BufferedReader reader = new BufferedReader(streamReader);
12 String advice = reader.readLine();
13 System.out.println("Today's advice: " + advice);
14 reader.close();
15 } catch (Exception ex) {
16 ex.printStackTrace();
17 }
18 }
Referenced by main().
◆ main()
static void DailyAdviceClient.main |
( |
String[] | args | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: