Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/Net/TFTP/TFTP_header.hpp File Reference

#include <j2k/Fred/Standard.hpp>

Go to the source code of this file.

Compounds

union  short_char2_t
struct  StringData_t

Defines

#define Opt_None   0x00
#define Opt_BlockSize   0x01
#define Opt_Timeout   0x02
#define Opt_FileSize   0x04

Enumerations

enum  OpCode_t {
  RRQ = 1, WRQ = 2, DATA = 3, ACK = 4,
  ERROR = 5, OACK = 6
}
enum  TFTP_errcode_t {
  TFTP_NotDefined = 0, TFTP_FileNotFound = 1, TFTP_AccessViolation = 2, TFTP_DiskFull = 3,
  TFTP_IllegalOp = 4, TFTP_FileAlreadyExist = 5, TFTP_NoSuchUser = 6
}
enum  TFTP_Status_t {
  TFTP_Uninitialized = 0x00, TFTP_Disconnected = 0x01, TFTP_Connected = 0x03, TFTP_ReadingNotAck = 0x0B,
  TFTP_WritingNotAck = 0x13, TFTP_Reading = 0x0F, TFTP_Writing = 0x17, TFTP_EndofReadNotAck = 0x2B,
  TFTP_EndofWriteNotAck = 0x33, TFTP_EndofRead = 0x2F, TFTP_EndofWrite = 0x37, TFTP_Error = 0x43,
  TFTP_Finished = 0x81
}
enum  TFTP_Type_t {
  TFTP_Type_Undefined = 0x00, TFTP_Server = 0x01, TFTP_ServerRead = 0x05, TFTP_ServerWrite = 0x09,
  TFTP_Client = 0x02, TFTP_ClientRead = 0x06, TFTP_ClientWrite = 0x0A
}

Variables

TFTP_Option option
TFTP_OptionSaved savedOptions
StringData_t tftp_error_msg [8]
const char * TFTP_errmsg [8]


Define Documentation

#define Opt_BlockSize   0x01
 

Definition at line 26 of file TFTP_header.hpp.

#define Opt_FileSize   0x04
 

Definition at line 28 of file TFTP_header.hpp.

#define Opt_None   0x00
 

Definition at line 25 of file TFTP_header.hpp.

#define Opt_Timeout   0x02
 

Definition at line 27 of file TFTP_header.hpp.


Enumeration Type Documentation

enum OpCode_t
 

Enumeration values:
RRQ 
WRQ 
DATA 
ACK 
ERROR 
OACK 

Definition at line 40 of file TFTP_header.hpp.

00041 {
00042   RRQ   = 1,
00043   WRQ   = 2,
00044   DATA  = 3,
00045   ACK   = 4,
00046   ERROR = 5,
00047   OACK  = 6
00048 };   

enum TFTP_Status_t
 

Enumeration values:
TFTP_Uninitialized 
TFTP_Disconnected 
TFTP_Connected 
TFTP_ReadingNotAck 
TFTP_WritingNotAck 
TFTP_Reading 
TFTP_Writing 
TFTP_EndofReadNotAck 
TFTP_EndofWriteNotAck 
TFTP_EndofRead 
TFTP_EndofWrite 
TFTP_Error 
TFTP_Finished 

Definition at line 110 of file TFTP_header.hpp.

00111 {
00112   TFTP_Uninitialized    = 0x00,  // %0000,0000
00113   TFTP_Disconnected     = 0x01,  // %0000,0001
00114   TFTP_Connected        = 0x03,  // %0000,0011
00115   TFTP_ReadingNotAck    = 0x0B,  // %0000,1011
00116   TFTP_WritingNotAck    = 0x13,  // %0001,0011
00117   TFTP_Reading          = 0x0F,  // %0000,1111
00118   TFTP_Writing          = 0x17,  // %0001,0111
00119   TFTP_EndofReadNotAck  = 0x2B,  // %0010,1011
00120   TFTP_EndofWriteNotAck = 0x33,  // %0011,0011
00121   TFTP_EndofRead        = 0x2F,  // %0010,1111
00122   TFTP_EndofWrite       = 0x37,  // %0011,0111
00123   TFTP_Error            = 0x43,  // %0100,0011 
00124   TFTP_Finished         = 0x81   // %1000,0001
00125 };

enum TFTP_Type_t
 

Enumeration values:
TFTP_Type_Undefined 
TFTP_Server 
TFTP_ServerRead 
TFTP_ServerWrite 
TFTP_Client 
TFTP_ClientRead 
TFTP_ClientWrite 

Definition at line 135 of file TFTP_header.hpp.

00136 {
00137   TFTP_Type_Undefined = 0x00,  // %0000
00138   TFTP_Server         = 0x01,  // %0001
00139   TFTP_ServerRead     = 0x05,  // %0101
00140   TFTP_ServerWrite    = 0x09,  // %1001
00141 
00142   TFTP_Client         = 0x02,  // %0010
00143   TFTP_ClientRead     = 0x06,  // %0110
00144   TFTP_ClientWrite    = 0x0A,  // %1010
00145 };

enum TFTP_errcode_t
 

Enumeration values:
TFTP_NotDefined 
TFTP_FileNotFound 
TFTP_AccessViolation 
TFTP_DiskFull 
TFTP_IllegalOp 
TFTP_FileAlreadyExist 
TFTP_NoSuchUser 

Definition at line 85 of file TFTP_header.hpp.

00085                     {
00086   TFTP_NotDefined       = 0,
00087   TFTP_FileNotFound     = 1,
00088   TFTP_AccessViolation  = 2,
00089   TFTP_DiskFull         = 3,   
00090   TFTP_IllegalOp        = 4,
00091   TFTP_FileAlreadyExist = 5,
00092   TFTP_NoSuchUser       = 6   // only use for mail (Not supported)
00093 };


Variable Documentation

const char* TFTP_errmsg[ 8 ]
 

Initial value:

 {
  "Not defined.",
  "File not found.",
  "Access violation.",
  "Disk full or allocation exceeded.",
  "Illegal TFTP operation.",
  "Unknown transfer ID.",
  "File already exist.",
  "No such user.",
}

Definition at line 74 of file TFTP_header.hpp.

TFTP_Option option
 

Definition at line 21 of file TFTP_header.hpp.

TFTP_OptionSaved savedOptions
 

Definition at line 22 of file TFTP_header.hpp.

StringData_t tftp_error_msg[8]
 

Initial value:

 {
  { "Not defined.",         12 },
  { "File not found.",      15 },
  { "Access violation.",    17 },
  { "Disk full or allocation exceeded.", 33 },
  { "Illegal operation.",   18 },
  { "Unknown transfer ID.", 20 },
  { "File already exist.",  19 },
  { "No such user.",        13 }
}

Definition at line 63 of file TFTP_header.hpp.


Generated on Sun Oct 14 18:47:47 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001