Class Server
- java.lang.Object
-
- org.activecomponents.udp.holepunching.server.Server
-
public class Server extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.net.DatagramSocket
dgsocket
UDP socketprotected java.util.Map<java.lang.String,IRegisteredHost>
registeredhosts
protected boolean
running
protected java.net.ServerSocket
serversocket
Server socket for command line accessstatic java.nio.charset.Charset
UTF8
protected java.net.ServerSocket
webserversocket
Server socket for web access
-
Constructor Summary
Constructors Constructor Description Server(java.lang.String host, int port, int wport, int uport)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
static java.lang.String
readLine(java.io.InputStream in)
Read a line from an input stream.void
start()
-
-
-
Field Detail
-
UTF8
public static java.nio.charset.Charset UTF8
-
serversocket
protected java.net.ServerSocket serversocket
Server socket for command line access
-
webserversocket
protected java.net.ServerSocket webserversocket
Server socket for web access
-
dgsocket
protected java.net.DatagramSocket dgsocket
UDP socket
-
registeredhosts
protected java.util.Map<java.lang.String,IRegisteredHost> registeredhosts
-
running
protected boolean running
-
-