Package zleurtor.scanmanager.model
Class Slave
java.lang.Object
zleurtor.scanmanager.model.AbstractCommunicator
zleurtor.scanmanager.model.Slave
The slaves's class having in charge to receive messages from the master, treat them and return responses.
- Author:
- Zleurtor
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
discoverReceived
(DatagramPacket packet) A "discover" message has been received, treat it.static void
Starts the slave application.Methods inherited from class zleurtor.scanmanager.model.AbstractCommunicator
readMessage, writeMessage
-
Method Details
-
main
Starts the slave application.- Parameters:
args
- The arguments of the slave application (no one is used;-)
-
discoverReceived
public static void discoverReceived(DatagramPacket packet) throws IOException, ClassNotFoundException A "discover" message has been received, treat it.- Parameters:
packet
- The datagram packet containing the discover message.- Throws:
IOException
- If an I/O error occurs while reading stream.ClassNotFoundException
- If a network object cannot be unmarshalled.
-