Add more netcode

This commit is contained in:
Flare Microsystems
2024-11-13 08:49:21 -08:00
parent a2a5322835
commit 16b66b6094
10 changed files with 369 additions and 113 deletions

View File

@@ -1,5 +1,6 @@
package com.flaremicro.crossjeeves;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
@@ -15,9 +16,18 @@ public class CrossJeevesMain {
{
try
{
int port = Integer.parseInt(parsedArgs.get("host"));
int port = 10801;
if(parsedArgs.get("host").length() != 0)
port = Integer.parseInt(parsedArgs.get("host"));
CrossJeevesHost host = new CrossJeevesHost(port);
host.startHosting();
try
{
host.startHosting();
}
catch (IOException e)
{
e.printStackTrace();
}
}
catch (NumberFormatException ex)
{