com.khubla.telnet.nvt.iac.command.NAOCRDIAICCommandHandlerImpl Maven / Gradle / Ivy
/*
* Copyright (C) khubla.com - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Tom Everett , 2018
*/
package com.khubla.telnet.nvt.iac.command;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.khubla.telnet.nvt.IACCommandHandler;
import com.khubla.telnet.nvt.NVT;
public class NAOCRDIAICCommandHandlerImpl extends AbstractIACCommandHandler {
/**
* logger
*/
private static final Logger logger = LoggerFactory.getLogger(NAOCRDIAICCommandHandlerImpl.class);
/**
* EOR
*/
public static final int EOR = 239;
@Override
public void process(NVT nvt, int cmd) throws IOException {
switch (cmd) {
case IACCommandHandler.IAC_COMMAND_DO:
logger.info("Received IAC DO NAOCRD");
break;
case IACCommandHandler.IAC_COMMAND_DONT:
logger.info("Received IAC DONT NAOCRD");
break;
case IACCommandHandler.IAC_COMMAND_WILL:
logger.info("Received IAC DO NAOCRD");
break;
case IACCommandHandler.IAC_COMMAND_WONT:
logger.info("Received IAC WONT NAOCRD");
break;
case IACCommandHandler.IAC_COMMAND_SB:
logger.info("Received IAC SB NAOCRD");
break;
default:
logger.info("Received Unknown IAC Command:" + cmd);
break;
}
}
}