All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.capybara.clamav.commands.Ping.kt Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
package xyz.capybara.clamav.commands

import xyz.capybara.clamav.InvalidResponseException

object Ping : Command() {
    override val commandString: String
        get() = "PING"

    override val format: Command.CommandFormat
        get() = Command.CommandFormat.NULL_CHAR

    override fun parseResponse(responseString: String): Unit {
        if (responseString != "PONG") {
            throw InvalidResponseException(responseString)
        }
        logger.debug(responseString)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy