Package com.inesm.KeyManager.services
Class TCPClientManager
java.lang.Object
com.inesm.KeyManager.services.TCPClientManager
- All Implemented Interfaces:
Runnable
Provides a TCP Client.
-
Constructor Summary
ConstructorsConstructorDescriptionTCPClientManager(CommunicationService comService) Constructor method for TCPClientManager. -
Method Summary
-
Constructor Details
-
TCPClientManager
Constructor method for TCPClientManager.- Parameters:
comService- the communication service that will supply the resources to be sent over the network.
-
-
Method Details
-
setup
Sets up a TCP connection.Will use the port defined in the
application.propertiesfile.- Parameters:
ip- the ip address of the target machine.- Throws:
IOException- if an error occurred setting up the connection
-
stop
Closes a socket connection and output stream.- Throws:
IOException- if an error occurred during closing
-
run
public void run()
-