Package org.jcsp.net.tcpip
Class TCPIPCNSServer
java.lang.Object
org.jcsp.net.tcpip.TCPIPCNSServer
Program to run a Channel Name Service. The service will listen on all locally available addresses using either a default port of 7890 or a port specified by the first parameter on the command line.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default port number for a Channel Name Server.(package private) static final One2OneChannel
For use by other sub classes of this class to terminate the server. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
terminate
For use by other sub classes of this class to terminate the server. To terminate the server write a null to this channel. This gets used in the NT service implementation to response to the STOP event. -
DEFAULT_CNS_PORT
public static final int DEFAULT_CNS_PORTThe default port number for a Channel Name Server. This value will be used by default if none is specified on the command line. When locating a CNS the TCPIPNodeFactory will also use this default value if none is supplied to it.- See Also:
-
-
Constructor Details
-
TCPIPCNSServer
private TCPIPCNSServer()
-
-
Method Details
-
main
Main method, running the service. This will never terminate if the service can be started.
-