Add more netcode
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user