All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----edu.utah.janos.antsr.core.Console
Summary |
class Console extends java.lang.Object implements java.lang.Runnable { // Fields 3 private static final int MAX_SOCKET_BACKLOG; private final Node node; private final ServerSocket socket; // Constructors 1 Console(Node, int) throws IOException; // Methods 4 void accept(); int getPort(); public void run(); public String toString(); }
Fields |
· MAX_SOCKET_BACKLOG | Summary | Top |
private static final int MAX_SOCKET_BACKLOG
· socket | Summary | Top |
private final ServerSocket socket
The socket this console listens on.
· node | Summary | Top |
private final Node node
Constructors |
· Console | Summary | Top |
Console(Node node, int port) throws IOException
Create a Console listener on the given port. Blows up if the port is already in use, throwing an IOException.
Connections will not be handled until the
accept()
method is executed. You'd best supply a new thread to handle them, too.
Parameter Description port the port to use; zero for any free port.
- Throws: IOException
- throws whatever errors ServerSocket might toss your way.
See Also: accept
Methods |
· getPort | Summary | Top |
int getPort()
Return the port this console server listens on
· toString | Summary | Top |
public String toString()
- Overrides:
- toString in class Object
· run | Summary | Top |
public void run()
Set the connection handler function in motion
- Implements:
- run in interface Runnable
· accept | Summary | Top |
void accept()
Accept and handle connections on this Console.
This call never returns.
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7