-
Notifications
You must be signed in to change notification settings - Fork 9
client.JFilesClient
This is the main class of the JFiles client application
Package: client
Config:
- 'serverName' - Default value "localhost"
- 'serverPort' - Default value "9786"
Parameters:
- 'serverName' - The name of the server that the client will connect to.
- 'serverPort' - The port number on the server that the client will connect to.
-
'static final Logger logger' - LogManager.getLogger(JfilesClient.class). Private:
-
'Socket socket' - Default value NULL.
-
'Thread thread' - Default value NULL.
-
'DataInputStream console' - Default value NULL.
-
'DataOutputStream streamOut' - Default value NULL.
-
'JFilesClientThread client' - Default value NULL.
-
'static String host' - Default value "localhost"
-
'static int port' - Default value 9786
Handles allocating resources needed for the server. @throws - IOException if there is a problem binding to the socket.
While thread is true connect to server.
Parameters:
- 'cmd' - command to be sent tot he server.
Sends the given command('cmd') to the server.
Parameters:
- 'msg' - message to be output to the console.
This method handles a message('msg').
Starts the client's connection to the server.
Stops the thread
Creates an a new JFilesClient object.
- Home
- Course-Related Materials
- Development Environment
- Development Workflow
- Packages
- Guides
- Team Pages