/* (non-Javadoc)
* @see org.jtestserver.common.protocol.Server#receive(org.jtestserver.common.protocol.MessageProcessor)
*/
@Override
public synchronized void receive(MessageProcessor processor) throws ProtocolException, TimeoutException {
ReceivedMessage receivedMessage = protocol.receiveMessage(socket);
String reply = processor.process(receivedMessage.getMessage());
if (reply != MessageProcessor.NO_RESPONSE) {
protocol.sendMessage(socket, reply, receivedMessage.getRemoteAddress());
}
}