client.JFilesClientThread - rsanchez-wsu/jfiles GitHub Wiki
The main purpose of this class is to handle creating a thread for a JFilesClient object.
Package: client
Constructor
+ JFilesClientThread(JFilesClient mclient, Socket msocket)
Parameter:
- 'mclient' - The client
- 'msocket' - The socket
Member Variables
Private:
- 'Socket socket' - Default value NULL.
- 'JFilesClient client' - Default value NULL.
- 'DataInputStream' streamIn - Default value NULL.
Functions
+ public void open()
Opens the stream
+ public void close()
Closes the stream
public void run()
Takes input from the socket and calls JFilesClient.handle().
+ public void init()
Starts the thread