Voici quelques suggestions pour la programmation des modules de communication manquants

public class CommByFile implements Communication {

// You have to write the code for this class.

// You could start out by making a copy of the CommCoded.
// You have to make the necessary changes such that instead of using the variable codedMessage,
// the program uses a file in which the string of the coded message is stored. The file must be closed
// after sending a message, before it will be opened again by the consumer before reading the message.
// The acknowledgment of the reception of a message does not need to be changed.
//

}

 

public class CommByTCP_sender implements Communication {

// You need the Socket class here to establish a TCP connection.
// The destination address would be "localhost", you can choose a port number
// on which the receiver will listen.
// You should use here the same message encoding as in the CommCoded version
// (and the CommByFile version).
// You should replace the acknowledgment through the monitor (as implemented
// in the other versions) by the sending of an acknowledgment message
// from the receiver to the sender.
//

}