tftp_common  1.3.0
Classes | Namespaces | Enumerations
packets.hpp File Reference
#include <arpa/inet.h>
#include <cassert>
#include <cstdint>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
Include dependency graph for packets.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tftp_common::packets::Request
 Read/Write Request (RRQ/WRQ) Trivial File Transfer Protocol packet. More...
 
class  tftp_common::packets::Data
 Data Trivial File Transfer Protocol packet. More...
 
class  tftp_common::packets::Acknowledgment
 Acknowledgment Trivial File Transfer Protocol packet. More...
 
class  tftp_common::packets::Error
 Error Trivial File Transfer Protocol packet. More...
 
class  tftp_common::packets::OptionAcknowledgment
 Option Acknowledgment Trivial File Transfer Protocol packet. More...
 

Namespaces

 tftp_common
 
 tftp_common::packets
 
 tftp_common::packets::types
 
 tftp_common::packets::errors
 
 tftp_common::packets::modes
 

Enumerations

enum  tftp_common::packets::types::Type : std::uint16_t {
  tftp_common::packets::types::ReadRequest = 0x01 , tftp_common::packets::types::WriteRequest = 0x02 , tftp_common::packets::types::DataPacket = 0x03 , tftp_common::packets::types::AcknowledgmentPacket = 0x04 ,
  tftp_common::packets::types::ErrorPacket = 0x05 , tftp_common::packets::types::OptionAcknowledgmentPacket = 0x06
}
 Trivial File Transfer Protocol packet type. More...
 
enum  tftp_common::packets::errors::Error : std::uint16_t {
  tftp_common::packets::errors::NotDefined = 0 , tftp_common::packets::errors::FileNotFound = 1 , tftp_common::packets::errors::AccessViolation = 2 , tftp_common::packets::errors::DiskFull = 3 ,
  tftp_common::packets::errors::IllegalOperation = 4 , tftp_common::packets::errors::UnknownTransferID = 5 , tftp_common::packets::errors::FileAlreadyExists = 6 , tftp_common::packets::errors::NoSuchUser = 7
}
 Trivial File Transfer Protocol error code. More...
 
enum  tftp_common::packets::modes::TransferMode { tftp_common::packets::modes::NetAscii , tftp_common::packets::modes::Octet }
 Trivial File Transfer Protocol transfer mode. More...