If there is such request this class initiates procedures assiociated with making new environment for user. Creates de-facto new Remote Console for communicating with user.
Created: Thu Jan 10 15:33:05 2002
Definition at line 46 of file SocketListener.java.
Public Methods | |
SocketListener () | |
Creates a new SocketListener instance. | |
void | startListening () throws IOException |
Method startListening starts working for this instance with default or earlier set values of server port number and as a daemon or not whatever is set. | |
void | startListening (int port_no, boolean daemon) throws IOException |
Method startListening starts listener working with given parameters of server port number and as daemon or not depends what is set. | |
void | close () |
Method close closing server socket and stopping listening for incoming connection requests. | |
void | run () |
Method run performs all actions assiocated with listening on server socket handle new connection requests. | |
int | getPort_no () |
Gets the value of server socket posrt number. | |
void | setPort_no (int argPort_no) |
Sets the value of server socket posrt number. | |
ConnectionHandlerIfc | getConn_handler () |
Gets the contained connection handler implementation. | |
void | setConn_handler (ConnectionHandlerIfc argConn_handler) |
Sets the value of conn_handler - reference to instance of ConnectionHandlerIfc . | |
List | getCommand_handlers () |
Gets the value of command_handlers. | |
void | setCommand_handlers (List argCommand_handlers) |
Sets the value of command_handlers. | |
Protected Methods | |
void | log (String msg) |
Methodlog is simple logging function which allows to send some messages to log for latter revisiting. | |
Protected Attributes | |
int | port_no = Constants.DEFAULT_SERVER_PORT |
Variable port_no keeps server port number on which it listening and waiting for incoming connections. | |
ConnectionHandlerIfc | conn_handler = null |
Variable conn_handler contains reference to object responsible for handling new connection requests from users. | |
List | command_handlers = null |
Variable command_handlers contains List of all avilable command handler which are passed to every new created ConnectionServer . | |
ServerSocket | server_socket = null |
Variable server_socket instance of ServerSocket object is used to listening on server socket and wating for incoming new connection requests. | |
LogIfc | log_impl = null |
Variable log_impl contains reference to logging class implementation. | |
boolean | may_run = true |
Variable may_run tells if listening on server socket may be continued if it is false SocketListener finishes his work. |
|
Creates a new This is empty constructor. Definition at line 87 of file SocketListener.java. |
|
Method It does _not_ stops current connections performed to already connected users. Definition at line 122 of file SocketListener.java. |
|
Gets the value of command_handlers.
Definition at line 217 of file SocketListener.java. |
|
Gets the contained connection handler implementation.
Definition at line 198 of file SocketListener.java. |
|
Gets the value of server socket posrt number.
Definition at line 179 of file SocketListener.java. |
|
Method
Note that it uses
Definition at line 168 of file SocketListener.java. |
|
Method
Definition at line 135 of file SocketListener.java. |
|
Sets the value of command_handlers.
Definition at line 226 of file SocketListener.java. |
|
Sets the value of conn_handler - reference to instance of
Definition at line 208 of file SocketListener.java. |
|
Sets the value of server socket posrt number.
Definition at line 188 of file SocketListener.java. |
|
Method
Definition at line 107 of file SocketListener.java. |
|
Method
Definition at line 95 of file SocketListener.java. |
|
Variable
Definition at line 64 of file SocketListener.java. |
|
Variable
For more detail please look in
Definition at line 59 of file SocketListener.java. |
|
Variable
It is possible, however not fully implemented, to define by user new log handler and put it to Definition at line 77 of file SocketListener.java. |
|
Variable
Definition at line 82 of file SocketListener.java. |
|
Variable
Definition at line 52 of file SocketListener.java. |
|
Variable
Definition at line 70 of file SocketListener.java. |