#include <j2k/Fred/Standard.hpp>
#include <j2k/Fred/Error/JErrorController.hpp>
#include <j2k/Net/TFTP/TFTP_Option.hpp>
#include <j2k/Net/TFTP/TFTP_Packet.hpp>
Go to the source code of this file.
Defines | |
#define | SendNotDefinedError(errmsg) TFTP_NotDefinedErrorHandler( Error, TFTPerror_NotDefined, errmsg, __LINE__, __FILE__ ) |
#define | SendIllegalOpError(errmsg) TFTP_IllegalOpErrorHandler( Error, TFTPerror_IllegalOpCode, errmsg, __LINE__, __FILE__ ) |
#define | ADD_TFTP_ERROR0(i) pgmErrorController.add( (JErrorNo)(i), TFTP_NotDefinedErrorHandler, 2 ); |
#define | ADD_TFTP_ERROR1(i) pgmErrorController.add( (JErrorNo)(i), TFTP_FileNotFoundErrorHandler, 2 ); |
#define | ADD_TFTP_ERROR2(i) pgmErrorController.add( (JErrorNo)(i), TFTP_AccessViolationErrorHandler, 2 ); |
#define | ADD_TFTP_ERROR3(i) pgmErrorController.add( (JErrorNo)(i), TFTP_DiskFullErrorHandler, 2 ); |
#define | ADD_TFTP_ERROR4(i) pgmErrorController.add( (JErrorNo)(i), TFTP_IllegalOpErrorHandler, 2 ); |
#define | ADD_TFTP_ERROR5(i) pgmErrorController.add( (JErrorNo)(i), TFTP_FileAlreadyExistErrorHandler, 2 ); |
#define | ADD_TFTP_ERROR6(i) pgmErrorController.add( (JErrorNo)(i), TFTP_NoSuchUserErrorHandler, 2 ); |
Functions | |
void | TFTP_NotDefinedErrorHandler (JErrorLevel level, JErrorNo no, const char *errmsg, int line, const char *file) |
void | TFTP_FileNotFoundErrorHandler (JErrorLevel level, JErrorNo no, const char *errmsg, int line, const char *file) |
void | TFTP_AccessViolationErrorHandler (JErrorLevel level, JErrorNo no, const char *errmsg, int line, const char *file) |
void | TFTP_DiskFullErrorHandler (JErrorLevel level, JErrorNo no, const char *errmsg, int line, const char *file) |
void | TFTP_IllegalOpErrorHandler (JErrorLevel level, JErrorNo no, const char *errmsg, int line, const char *file) |
void | TFTP_FileAlreadyExistErrorHandler (JErrorLevel level, JErrorNo no, const char *errmsg, int line, const char *file) |
void | TFTP_NoSuchUserErrorHandler (JErrorLevel level, JErrorNo no, const char *errmsg, int line, const char *file) |
void | add_TFTP_ErrorHandlers () |
|
Definition at line 79 of file TFTP_Error.hpp. Referenced by add_TFTP_ErrorHandlers().
|
|
Definition at line 82 of file TFTP_Error.hpp. Referenced by add_TFTP_ErrorHandlers().
|
|
Definition at line 85 of file TFTP_Error.hpp. Referenced by add_TFTP_ErrorHandlers().
|
|
Definition at line 88 of file TFTP_Error.hpp. Referenced by add_TFTP_ErrorHandlers().
|
|
Definition at line 91 of file TFTP_Error.hpp. |
|
Definition at line 94 of file TFTP_Error.hpp. Referenced by add_TFTP_ErrorHandlers().
|
|
Definition at line 97 of file TFTP_Error.hpp. |
|
Definition at line 76 of file TFTP_Error.hpp. Referenced by ACK_driver(), DATA_driver(), OACK_driver(), RRQ_driver(), WRQ_driver(), and opcodeDispatcher().
|
|
Definition at line 73 of file TFTP_Error.hpp. Referenced by TFTP_Option::requestedMode(), and TFTP_Timeout::timedRun().
|
|
Definition at line 27 of file TFTP_Error.hpp. 00028 { 00029 if ( option.isConnected() ) { 00030 TFTP_Packet pkt; 00031 pkt.sendError( TFTP_AccessViolation, errmsg ); 00032 } 00033 defaultErrorHandler( level, no, errmsg, line, file ); 00034 } |
|
Definition at line 36 of file TFTP_Error.hpp. 00037 { 00038 if ( option.isConnected() ) { 00039 TFTP_Packet pkt; 00040 pkt.sendError( TFTP_DiskFull, errmsg ); 00041 } 00042 defaultErrorHandler( level, no, errmsg, line, file ); 00043 } |
|
Definition at line 54 of file TFTP_Error.hpp. 00055 { 00056 if ( option.isConnected() ) { 00057 TFTP_Packet pkt; 00058 pkt.sendError( TFTP_FileAlreadyExist, errmsg ); 00059 } 00060 defaultErrorHandler( level, no, errmsg, line, file ); 00061 } |
|
Definition at line 18 of file TFTP_Error.hpp. 00019 { 00020 if ( option.isConnected() ) { 00021 TFTP_Packet pkt; 00022 pkt.sendError( TFTP_FileNotFound, errmsg ); 00023 } 00024 defaultErrorHandler( level, no, errmsg, line, file ); 00025 } |
|
Definition at line 45 of file TFTP_Error.hpp. 00046 { 00047 if ( option.isConnected() ) { 00048 TFTP_Packet pkt; 00049 pkt.sendError( TFTP_IllegalOp, errmsg ); 00050 } 00051 defaultErrorHandler( level, no, errmsg, line, file ); 00052 } |
|
Definition at line 64 of file TFTP_Error.hpp. 00065 { 00066 if ( option.isConnected() ) { 00067 TFTP_Packet pkt; 00068 pkt.sendError( TFTP_NoSuchUser, errmsg ); 00069 } 00070 defaultErrorHandler( level, no, errmsg, line, file ); 00071 } |
|
Definition at line 9 of file TFTP_Error.hpp. 00010 { 00011 if ( option.isConnected() ) { 00012 TFTP_Packet pkt; 00013 pkt.sendError( TFTP_NotDefined, errmsg ); 00014 } 00015 defaultErrorHandler( level, no, errmsg, line, file ); 00016 } |
|
Definition at line 103 of file TFTP_Error.hpp. Referenced by TFTP::TFTP().
00104 { 00105 ADD_TFTP_ERROR1( 2 ) 00106 ADD_TFTP_ERROR0( 5 ) 00107 ADD_TFTP_ERROR0( 9 ) 00108 ADD_TFTP_ERROR0( 11 ) 00109 ADD_TFTP_ERROR2( 13 ) 00110 ADD_TFTP_ERROR2( 14 ) 00111 ADD_TFTP_ERROR0( 16 ) 00112 ADD_TFTP_ERROR5( 17 ) 00113 ADD_TFTP_ERROR1( 19 ) 00114 ADD_TFTP_ERROR2( 21 ) 00115 ADD_TFTP_ERROR0( 23 ) 00116 ADD_TFTP_ERROR0( 24 ) 00117 ADD_TFTP_ERROR0( 26 ) 00118 ADD_TFTP_ERROR3( 27 ) 00119 ADD_TFTP_ERROR3( 28 ) 00120 ADD_TFTP_ERROR2( 30 ) 00121 ADD_TFTP_ERROR3( 49 ) 00122 ADD_TFTP_ERROR0( 56 ) 00123 ADD_TFTP_ERROR0( 81 ) 00124 00125 // Add default TFTP handlers 00126 short k = 0; 00127 for( ; k < 255; k++ ) { 00128 if ( pgmErrorController.getID( (JErrorNo)(k) ) < 2 ) { 00129 ADD_TFTP_ERROR0( k ) 00130 } 00131 } 00132 00133 } |