Example usage for org.apache.commons.net.tftp TFTPErrorPacket UNDEFINED

List of usage examples for org.apache.commons.net.tftp TFTPErrorPacket UNDEFINED

Introduction

In this page you can find the example usage for org.apache.commons.net.tftp TFTPErrorPacket UNDEFINED.

Prototype

int UNDEFINED

To view the source code for org.apache.commons.net.tftp TFTPErrorPacket UNDEFINED.

Click Source Link

Document

The undefined error code according to RFC 783, value 0.

Usage

From source file:org.mobicents.slee.resource.tftp.TFTPTransfer.java

private void fireEvent(TFTPPacket packet) throws Exception {
    RequestEvent event = new RequestEventImpl(packet, this);
    try {//from ww w  .  ja  va 2 s  .  com
        ra_.fireEvent(event, activity_, packet.getAddress().toString());
    } catch (Exception e) {
        transferTftp_.bufferedSend(new TFTPErrorPacket(packet.getAddress(), packet.getPort(),
                TFTPErrorPacket.UNDEFINED, e.getMessage()));
        throw e;
    }
}