COMP2396
Loading...
Searching...
No Matches
T8Server Class Reference

Static Public Member Functions

static void main (String[] args) throws IOException
 

Detailed Description

Definition at line 5 of file T8Server.java.

Member Function Documentation

◆ main()

static void T8Server.main ( String[] args) throws IOException
inlinestatic

Definition at line 7 of file T8Server.java.

7 {
8 System.out.println("Server is Running...");
9 Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
10 public void run() {
11 System.out.println("Server Stopped.");
12 }
13 }));
14
15 try (var listener = new ServerSocket(58901)) {
16 Server myServer = new Server(listener);
17 myServer.start();
18 } catch (Exception e) {
19 System.out.println(e.getMessage());
20 }
21 }
void start()
Definition Server.java:22

References Server.start().

Here is the call graph for this function:

The documentation for this class was generated from the following file: