TReK ANSI-C
5.3.3
All ANSI-C APIs
|
An ANSI C CFDP API. More...
#include "ds_shared.h"
#include "cfdp_shared.h"
#include "trek_toolkit_common_api_ansi_c.h"
#include "bp_shared.h"
Functions | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | InitToolkitCfdp (const char *config_pathname) |
Intializes the CFDP library using parameters read from a configuration file. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | InitToolkitCfdpAndCryptPassphrase (const char *config_pathname, const char *crypt_user_passphrase) |
Intializes the CFDP library using parameters read from a configuration file. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | SaveToolkitCfdp (const char *config_pathname) |
Saves the CFDP configuration parameters in an ASCII file. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | Put (const char *source_pathname, const char *destination_pathname, long long destination_eid) |
Initiates a "put" file transfer using the common components of a "put" primitive string. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | PutCFDP (const char *put_primitive) |
Initiates a "put" file transfer using a CFDP primitive string. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | PutComponentCFDP (const char *source_pathname, const char *destination_pathname, long long destination_eid, cfdp_class_of_service_type cfdp_class_of_service) |
Initiates a "put" file transfer using the components of a CFDP primitive string. Supports Native CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | PutComponentION (const char *source_pathname, const char *destination_pathname, long long destination_eid, unsigned int lifespan, bp_class_of_service_type cos, unsigned int ordinal, bp_transmission_mode_type mode, bp_criticality_type criticality) |
Initiates a "put" file transfer using the components of a CFDP primitive string. Supports ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddPut (const char *source_pathname, const char *destination_pathname, long long destination_eid) |
Adds a "put" file request, using the common components of a "put" primitive string, to the list of CFDP "put" requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddPutRequest (const char *put_primitive) |
Adds a "put" file request, using a "put" primitive string, to the list of CFDP "put" requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddPutComponentRequest (const char *source_pathname, const char *destination_pathname, long long destination_eid, cfdp_class_of_service_type cfdp_class_of_service) |
Adds a "put" file request, using "put" components, to the list of CFDP "put" requests. Supports Native CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddPutComponentRequestION (const char *source_pathname, const char *destination_pathname, long long destination_eid, unsigned int lifespan, bp_class_of_service_type cos, unsigned int ordinal, bp_transmission_mode_type mode, bp_criticality_type criticality) |
Adds a "put" file request, using "put" components, to the list of CFDP "put" requests. Supports ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | SendAllPutRequests () |
Initiates all "put" file requests in the list of CFDP "put" requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RemovePutRequest (const char *put_primitive) |
Removes a "put" file request, using a "put" primitive string, from the list of CFDP "put" requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RemovePutComponentRequest (const char *source_pathname, const char *destination_pathname, long long destination_eid) |
Removes a "put" file request, using "put" components, from the list of CFDP "put" requests. Supports both Native and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RemoveAllPutRequests () |
Removes all "put" file request in the list of CFDP "put" requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | Get (const char *source_pathname, const char *destination_pathname, long long source_eid) |
Initiates a "get" file transfer using the common components of a "get" primitive string. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | GetCFDP (const char *get_primitive) |
Initiates a "get" file transfer using a CFDP primitive string. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | GetComponentCFDP (const char *source_pathname, const char *destination_pathname, long long source_eid, cfdp_class_of_service_type cfdp_class_of_service) |
Initiates a "get" file transfer using the components of a CFDP primitive string. Supports Native CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | GetComponentION (const char *source_pathname, const char *destination_pathname, long long source_eid, unsigned int lifespan, bp_class_of_service_type cos, unsigned int ordinal, bp_transmission_mode_type mode, bp_criticality_type criticality) |
Initiates a "get" file transfer using the components of a CFDP primitive string. Supports ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddGet (const char *source_pathname, const char *destination_pathname, long long source_eid) |
Adds a "get" file request, using the common components of a "get" primitive string, to the list of CFDP "get" requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddGetRequest (const char *get_primitive) |
Adds a "get" file request, using a "get" primitive string, to the list of CFDP "get" requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddGetComponentRequest (const char *source_pathname, const char *destination_pathname, long long source_eid, cfdp_class_of_service_type cfdp_class_of_service) |
Adds a "get" file request, using "get" components, to the list of CFDP "get" requests. Supports Native CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddGetComponentRequestION (const char *source_pathname, const char *destination_pathname, long long source_eid, unsigned int lifespan, bp_class_of_service_type cos, unsigned int ordinal, bp_transmission_mode_type mode, bp_criticality_type criticality) |
Adds a "get" file request, using "get" components, to the list of CFDP "get" requests. Supports ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | SendAllGetRequests () |
Initiates all "get" file requests in the list of CFDP "get" requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RemoveGetRequest (const char *get_primitive) |
Removes a "get" file request, using a "get" primitive string, from the list of CFDP "get" requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RemoveGetComponentRequest (const char *source_pathname, const char *destination_pathname, long long source_eid) |
Removes a "get" file request, using "get" components, from the list of CFDP "get" requests. Supports both Native and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RemoveAllGetRequests () |
Removes all "get" file request in the list of CFDP "get" requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | Filestore (cfdp_filestore_action_type filestore_action, const char *first_pathname, const char *second_pathname, long long destination_eid) |
Initiates a filestore action using the common components of a filestore primitive string. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | FilestoreCFDP (const char *filestore_primitive) |
Initiates a filestore action (e.g., create_file, delete_file, rename_file ...) using a CFDP primitive string. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | FilestoreComponent (cfdp_filestore_action_type filestore_action, const char *first_pathname, const char *second_pathname, long long destination_eid, cfdp_class_of_service_type cfdp_class_of_service) |
Initiates a filestore action (e.g., CFDP_CREATE_FILE, CFDP_DELETE_FILE ...) using the components of a CFDP primitive string. Supports Native CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | FilestoreComponentION (cfdp_filestore_action_type filestore_action, const char *first_pathname, const char *second_pathname, long long destination_eid, unsigned int lifespan, bp_class_of_service_type cos, unsigned int ordinal, bp_transmission_mode_type mode, bp_criticality_type criticality) |
Initiates a filestore action (e.g., CFDP_CREATE_FILE, CFDP_DELETE_FILE ...) using the components of a CFDP primitive string. Supports ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddFilestore (cfdp_filestore_action_type filestore_action, const char *first_pathname, const char *second_pathname, long long destination_eid) |
Adds a filestore request, using the common components of a filestore primitive string, to the list of CFDP filestore requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddFilestoreRequest (const char *filestore_primitive) |
Adds a filestore request (e.g., create_file, delete_file, rename_file ...) using a CFDP primitive string. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddFilestoreComponentRequest (cfdp_filestore_action_type filestore_action, const char *first_pathname, const char *second_pathname, long long destination_eid, cfdp_class_of_service_type cfdp_class_of_service) |
Adds a filestore request (e.g., CFDP_CREATE_FILE, CFDP_DELETE_FILE ...) using filestore components, to the list of CFDP filestore actions. Supports Native CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddFilestoreComponentRequestION (cfdp_filestore_action_type filestore_action, const char *first_pathname, const char *second_pathname, long long destination_eid, unsigned int lifespan, bp_class_of_service_type cos, unsigned int ordinal, bp_transmission_mode_type mode, bp_criticality_type criticality) |
Adds a filestore request (e.g., CFDP_CREATE_FILE, CFDP_DELETE_FILE ...) using filestore components, to the list of CFDP filestore actions. Supports ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | SendAllFilestoreRequests () |
Initiates all filestore requests in the list of CFDP filestore requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RemoveFilestoreRequest (const char *filestore_primitive) |
Removes a filestore request (e.g., create_file, delete_file, rename_file ...) using a filestore primitive string, from the list of CFDP filestore requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RemoveFilestoreComponentRequest (cfdp_filestore_action_type filestore_action, const char *first_pathname, const char *second_pathname, long long destination_eid) |
Removes a filestore request, using the common components of a filestore primitive string, from the list of CFDP filestore requests. Supports both Native and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RemoveAllFilestoreRequests () |
Removes all filestore request from the list of CFDP filestore requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | Message (const char *message, long long destination_eid) |
Initiates a message transfer. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | MessageCFDP (const char *message_primitive) |
Initiates a message transfer using a CFDP primitive string. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | MessageComponent (const char *message, long long destination_eid, cfdp_class_of_service_type cfdp_class_of_service) |
Initiates a "message" transfer using the components of a CFDP primitive string. Supports Native CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | MessageComponentION (const char *message, long long destination_eid, unsigned int lifespan, bp_class_of_service_type cos, unsigned int ordinal, bp_transmission_mode_type mode, bp_criticality_type criticality) |
Initiates a message transfer using the components of a CFDP primitive string. Supports ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddMessage (const char *message, long long destination_eid) |
Adds a message transfer request to the list of CFDP message requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddMessageRequest (const char *message_primitive) |
Adds a message transfer request, using a CFDP primitive string, to the list of CFDP message requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddMessageComponentRequest (const char *message, long long destination_eid, cfdp_class_of_service_type cfdp_class_of_service) |
Adds a "message" request, using "message" components, to the list of CFDP "message" requests. Supports Native CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddMessageComponentRequestION (const char *message, long long destination_eid, unsigned int lifespan, bp_class_of_service_type cos, unsigned int ordinal, bp_transmission_mode_type mode, bp_criticality_type criticality) |
Adds a message transfer request, using the components of a CFDP primitive string, to the list of CFDP message requests. Supports ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | SendAllMessageRequests () |
Initiates all message transfer requests in the list of CFDP message requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RemoveMessageRequest (const char *message_primitive) |
Removes a message transfer request, using a message primitive string, from the list of CFDP message requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RemoveMessageComponentRequest (const char *message, long long destination_eid) |
Removes a message transfer request, using message components, from the list of CFDP message requests. Supports both Native and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RemoveAllMessageRequests () |
Removes all message transfer requests in the list of CFDP filestore requests. Supports both Native and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | SendRequest (const char *primitive) |
Initiates a CFDP transaction using a CFDP primitive string. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddRequest (const char *primitive) |
Adds a CFDP transaction, using a CFDP primitive string, to the appropriate list of similar CFDP transactions. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | SendAllRequests () |
Initiates all "put" and "get" file requests and all filestore and message requests in the lists of CFDP requests. Executes FIFO ordering. Supports both NATIVE and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RemoveAllRequests () |
Removes all "put" and "get" file request and all filestore and message requests in the lists. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | SaveAllRequestsToFile (const char *pathname) |
Saves all "put" and "get" file requests and all filestore and message requests in a file. Maintains FIFO ordering. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | BitRate (unsigned int bit_rate, long long destination_eid) |
Changes the current aggregate bit rate of files being transferred by the targeted eid. Supports Native CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | ProcessFileOfCFDPPrimitives (const char *pathname, unsigned int *primitive_count_ptr) |
Reads a a text file of CFDP "put", "get", "filestore" and "message" primitives and adds them to the appropriate transaction lists. All valid primitive files must begin with the text string "primitve_version" followed by a verision number and the TReK device mode (e.g., NATIVE_CFDP of ION_CFDP). Files that do not contain the "primitve_version" text string are considered invalid and will not be read. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | SuspendCFDPTransaction (const char *transaction_id) |
Suspend a CFDP file transaction using a transaction ID. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | SuspendTheCFDPTransaction (const char *destination_pathname, long long destination_eid) |
Suspend a CFDP file transaction using a destination pathname and destination entity ID. This function will not suspend a CFDP file transaction if the suspend call is made immediately after submitting the CFDP file transaction and prior to the CFDP file transaction creating a transaction ID. Supports both NATIVE and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | SuspendAllCFDPTransactions () |
Suspend all CFDP file transactions. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | ResumeCFDPTransaction (const char *transaction_id) |
Resume a previously suspended CFDP file transaction using a transaction ID. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | ResumeTheCFDPTransaction (const char *destination_pathname, long long destination_eid) |
Resume a previously suspended CFDP file transaction using a destination pathname and destination entity ID. Supports both NATIVE and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | ResumeAllCFDPTransactions () |
Resume all previously suspended CFDP file transactions. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | CancelCFDPTransaction (const char *transaction_id) |
Cancel a CFDP file transaction using a transaction ID. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | CancelTheCFDPTransaction (const char *destination_pathname, long long destination_eid) |
Cancel a CFDP file transaction using a destination pathname and destination entity ID. This function will not cancel a CFDP file transaction if the cancel call is made immediately after submitting the CFDP file transaction and prior to the CFDP file transaction creating a transaction ID. Supports both NATIVE and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | CancelAllCFDPTransactions () |
Cancel all CFDP file transactions. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | ReportCFDPTransaction (const char *transaction_id) |
Report the status of a CFDP file transaction including its current state, the transaction as a string, the size of the file being transferred and the number of bytes that have been sent. The status report is provided by the callback function associated with RegisterPrintMessage. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | ReportTheCFDPTransaction (const char *destination_pathname, long long destination_eid) |
Report the status of a CFDP file transaction including its current state, the transaction as a string, the size of the file being transferred and the number of bytes that have been sent. The status report is provided by the callback function associated with RegisterPrintMessage. This function will not report on a CFDP file transaction if the report call is made immediately after submitting the CFDP file transaction and prior to the CFDP file transaction creating a transaction ID. Supports both NATIVE and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | ReportAllCFDPTransactions () |
Report the status of all CFDP file transaction including their current state, the transaction as a string, the size of the file being transferred and the number of bytes that have been sent. The status report is provided by the callback function associated with RegisterPrintMessage. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | AddDestinationEID (long long destination_eid, const char *ip_address, unsigned short port) |
Associate an entity ID with an IP address and port number of a remote site. Only supported by the native CFDP implemetation. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | GetDisplayConsoleMenuFlag (boolean_type *display_console_menu_flag_ptr) |
Returns a boolean_type variable providing information on displaying the console application menu of command primitives. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | GetDisplayMessageMask (unsigned int *display_mask_ptr) |
Populates an unsigned integer with a mask value using the display message parameters in the configuration file. The mask may be used to determine if a message should be displayed. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | GetDeviceMode (device_mode_type *device_mode_ptr) |
Returns a device_mode_type variable providing information on the configuration of the CFDP device library (DM_ION_CFDP or DM_NATIVE_CFDP CFDP). Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | GetConfigurationAsString (unsigned int config_buffer_size, char *config_buffer) |
Returns the content of the CFDP configuration file in a character string. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | StartLoggingCFDPMessages (const char *log_file_path, const char *log_filename, boolean_type log_debug_messages) |
Starts logging messages to a file. Supports both NATIVE and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | StopLoggingCFDPMessages () |
Stops logging messages to a file, closes the log file and renames the log file by concatenating the log file name with a GMT time string. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | StartRecordingCFDPStatSnapshot (const char *record_file_path, const char *record_filename, boolean_type record_packet_statistics_flag) |
Starts recording a snapshot of the current statistics to a file. Supports both NATIVE and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | StopRecordingCFDPStatSnapshot () |
Stops recording statisitics to a file, closes the record file and renames the record file by concatenating the record file name with a GMT time string. Supports both NATIVE and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | ResetCFDPStatistics () |
Resets or zero's the device and packet statistics. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | StartRecordingCFDPMetricsSnapshot (const char *record_file_path, const char *record_filename) |
Starts recording a snapshot of the current CFDP metrics to a file. Supports both NATIVE and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | StopRecordingCFDPMetricsSnapshot () |
Stops recording CFDP metrics to a file, closes the record file and renames the record file by concatenating the record file name with a GMT time string. Supports both NATIVE and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | ResetCFDPMetrics () |
Resets or zero's the device and packet statistics. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | PopulateCFDPStructArray (unsigned int *number_of_cfdp_structs_ptr, cfdp_struct_type *cfdp_struct_array_ptr) |
Populates an array with cfdp structs describing current CFDP transactions. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | MonitorAllCFDPTransactions (unsigned int monitor_timeout, unsigned int *transaction_count_ptr, cfdp_struct_type **cfdp_struct_array_ptr) |
Monitors the status of all CFDP transactions and returns when all the transactions have completed or the monitor time, in seconds, expires. Supports both NATIVE and ION CFDP. More... | |
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | FreeCFDPStructArrayMemoryAlloc (cfdp_struct_type *cfdp_struct_array_ptr) |
Frees the memory associated with the cfdp_struct_array that was returned by MonitorAllCFDPTransactions. Supports both NATIVE and ION CFDP. More... | |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION | RegisterCFDPDeviceData (void(*function_ptr)(const char *device_key, int packet_length, unsigned char *packet_buffer_ptr)) |
Register a callback function to receive cfdp_struct status messages for all transactions currently being processed by the CFDP library. Supports both NATIVE and ION CFDP. More... | |
An ANSI C CFDP API.
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddDestinationEID | ( | long long | destination_eid, |
const char * | ip_address, | ||
unsigned short | port | ||
) |
Associate an entity ID with an IP address and port number of a remote site. Only supported by the native CFDP implemetation.
[in] | destination_eid | The entity ID of the remote site. |
[in] | ip_address | The IP address of the remote site. |
[in] | port | The port number of the remote site. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddFilestore | ( | cfdp_filestore_action_type | filestore_action, |
const char * | first_pathname, | ||
const char * | second_pathname, | ||
long long | destination_eid | ||
) |
Adds a filestore request, using the common components of a filestore primitive string, to the list of CFDP filestore requests. Supports both Native and ION CFDP.
[in] | filestore_action | The filestore action for the CFDP transaction. The cfdp_filestore_action_type is defined in the file "cfdp_shared.h". Not all filestore actions require two pathnames. The second pathname is ignored if it is not required. The following table identifies the cfdp_filestore_action_type and defines its required pathname parameter(s):
| ||||||||||||||||||||||||||||||
[in] | first_pathname | The full pathname of the first parameter in a filestore action. | ||||||||||||||||||||||||||||||
[in] | second_pathname | The full pathname of the second parameter (if any) in a filestore action. | ||||||||||||||||||||||||||||||
[in] | destination_eid | The integer value of remote entity ID. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddFilestoreComponentRequest | ( | cfdp_filestore_action_type | filestore_action, |
const char * | first_pathname, | ||
const char * | second_pathname, | ||
long long | destination_eid, | ||
cfdp_class_of_service_type | cfdp_class_of_service | ||
) |
Adds a filestore request (e.g., CFDP_CREATE_FILE, CFDP_DELETE_FILE ...) using filestore components, to the list of CFDP filestore actions. Supports Native CFDP.
[in] | filestore_action | The filestore action for the CFDP transaction. The cfdp_filestore_action_type is defined in the file "cfdp_shared.h". Not all filestore actions require two pathnames. The second pathname is ignored if it is not required. The following table identifies the cfdp_filestore_action_type and defines its required pathname parameter(s):
| ||||||||||||||||||||||||||||||
[in] | first_pathname | The full pathname of the first parameter in a filestore action. | ||||||||||||||||||||||||||||||
[in] | second_pathname | The full pathname of the second parameter (if any) in a filestore action. | ||||||||||||||||||||||||||||||
[in] | destination_eid | The integer value of remote entity ID. | ||||||||||||||||||||||||||||||
[in] | cfdp_class_of_service | The class of service for the CFDP transaction. The cfdp_class_of_service_type is defined in the file "cfdp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddFilestoreComponentRequestION | ( | cfdp_filestore_action_type | filestore_action, |
const char * | first_pathname, | ||
const char * | second_pathname, | ||
long long | destination_eid, | ||
unsigned int | lifespan, | ||
bp_class_of_service_type | cos, | ||
unsigned int | ordinal, | ||
bp_transmission_mode_type | mode, | ||
bp_criticality_type | criticality | ||
) |
Adds a filestore request (e.g., CFDP_CREATE_FILE, CFDP_DELETE_FILE ...) using filestore components, to the list of CFDP filestore actions. Supports ION CFDP.
[in] | filestore_action | The filestore action for the CFDP transaction. The cfdp_filestore_action_type is defined in the file "cfdp_shared.h". Not all filestore actions require two pathnames. The second pathname is ignored if it is not required. The following table identifies the cfdp_filestore_action_type and defines its required pathname parameter(s):
| ||||||||||||||||||||||||||||||
[in] | first_pathname | The full pathname of the first parameter in a filestore action. | ||||||||||||||||||||||||||||||
[in] | second_pathname | The full pathname of the second parameter (if any) in a filestore action. | ||||||||||||||||||||||||||||||
[in] | destination_eid | The integer value of remote entity ID. | ||||||||||||||||||||||||||||||
[in] | lifespan | The bundle's time to live. | ||||||||||||||||||||||||||||||
[in] | cos | The BP class of service priority. The bp_class_of_service_type is defined in the file "bp_shared.h" as follows:
| ||||||||||||||||||||||||||||||
[in] | ordinal | Only valid for expedited priority bundle transfer. Range from 0-254 with 254 as highest priority | ||||||||||||||||||||||||||||||
[in] | mode | The BP transmission mode. The bp_transmission_mode_type is defined in the file "bp_shared.h" as follows:
| ||||||||||||||||||||||||||||||
[in] | criticality | The BP cricality. The bp_criticality_type is defined in the file "bp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddFilestoreRequest | ( | const char * | filestore_primitive | ) |
Adds a filestore request (e.g., create_file, delete_file, rename_file ...) using a CFDP primitive string. Supports both Native and ION CFDP.
[in] | filestore_primitive | CFDP primitive (e.g., rename_file 86400/STD_PRIORITY/0/BEST_EFFORT/NO_CUSTODY_REQUIRED "old_pathname" 2 "new_pathname"). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddGet | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | source_eid | ||
) |
Adds a "get" file request, using the common components of a "get" primitive string, to the list of CFDP "get" requests. Supports both Native and ION CFDP.
[in] | source_pathname | The full path and filename of the source file. |
[in] | destination_pathname | The full path and filename of the destination file. |
[in] | source_eid | The integer value of remote entity ID. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddGetComponentRequest | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | source_eid, | ||
cfdp_class_of_service_type | cfdp_class_of_service | ||
) |
Adds a "get" file request, using "get" components, to the list of CFDP "get" requests. Supports Native CFDP.
[in] | source_pathname | The full path and filename of the source file. | ||||||
[in] | destination_pathname | The full path and filename of the destination file. | ||||||
[in] | source_eid | The integer value of remote entity ID. | ||||||
[in] | cfdp_class_of_service | The class of service for the CFDP transaction. The cfdp_class_of_service_type is defined in the file "cfdp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddGetComponentRequestION | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | source_eid, | ||
unsigned int | lifespan, | ||
bp_class_of_service_type | cos, | ||
unsigned int | ordinal, | ||
bp_transmission_mode_type | mode, | ||
bp_criticality_type | criticality | ||
) |
Adds a "get" file request, using "get" components, to the list of CFDP "get" requests. Supports ION CFDP.
[in] | source_pathname | The full path and filename of the source file. | ||||||||
[in] | destination_pathname | The full path and filename of the destination file. | ||||||||
[in] | source_eid | The integer value of remote entity ID. | ||||||||
[in] | lifespan | The bundle's time to live. | ||||||||
[in] | cos | The BP class of service priority. The bp_class_of_service_type is defined in the file "bp_shared.h" as follows:
| ||||||||
[in] | ordinal | Only valid for expedited priority bundle transfer. Range from 0-254 with 254 as highest priority | ||||||||
[in] | mode | The BP transmission mode. The bp_transmission_mode_type is defined in the file "bp_shared.h" as follows:
| ||||||||
[in] | criticality | The BP cricality. The bp_criticality_type is defined in the file "bp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddGetRequest | ( | const char * | get_primitive | ) |
Adds a "get" file request, using a "get" primitive string, to the list of CFDP "get" requests. Supports both Native and ION CFDP.
[in] | get_primitive | CFDP primitive (e.g., get class2 "source_file_pathname" 2 "destination_file_pathname", get //// "source_file_pathname" 2 "destination_file_pathname"). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddMessage | ( | const char * | message, |
long long | destination_eid | ||
) |
Adds a message transfer request to the list of CFDP message requests. Supports both Native and ION CFDP.
[in] | message | A string no greater than 256 characters in length including the NULL terminator. |
[in] | destination_eid | The integer value of remote entity ID. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddMessageComponentRequest | ( | const char * | message, |
long long | destination_eid, | ||
cfdp_class_of_service_type | cfdp_class_of_service | ||
) |
Adds a "message" request, using "message" components, to the list of CFDP "message" requests. Supports Native CFDP.
[in] | message | A string no greater than 256 characters in length including the NULL terminator. | ||||||
[in] | destination_eid | The integer value of remote entity ID. | ||||||
[in] | cfdp_class_of_service | The class of service for the CFDP transaction. The cfdp_class_of_service_type is defined in the file "cfdp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddMessageComponentRequestION | ( | const char * | message, |
long long | destination_eid, | ||
unsigned int | lifespan, | ||
bp_class_of_service_type | cos, | ||
unsigned int | ordinal, | ||
bp_transmission_mode_type | mode, | ||
bp_criticality_type | criticality | ||
) |
Adds a message transfer request, using the components of a CFDP primitive string, to the list of CFDP message requests. Supports ION CFDP.
[in] | message | A string no greater than 256 characters in length including the NULL terminator. | ||||||||
[in] | destination_eid | The integer value of remote entity ID. | ||||||||
[in] | lifespan | The bundle's time to live. | ||||||||
[in] | cos | The BP class of service priority. The bp_class_of_service_type is defined in the file "bp_shared.h" as follows:
| ||||||||
[in] | ordinal | Only valid for expedited priority bundle transfer. Range from 0-254 with 254 as highest priority | ||||||||
[in] | mode | The BP transmission mode. The bp_transmission_mode_type is defined in the file "bp_shared.h" as follows:
| ||||||||
[in] | criticality | The BP cricality. The bp_criticality_type is defined in the file "bp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddMessageRequest | ( | const char * | message_primitive | ) |
Adds a message transfer request, using a CFDP primitive string, to the list of CFDP message requests. Supports both Native and ION CFDP.
[in] | message_primitive | CFDP primitive (e.g., message class2 "Hello world" 100, message 86400/STD_PRIORITY/0/BEST_EFFORT/NO_CUSTODY_REQUIRED "Hello world" 100). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddPut | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | destination_eid | ||
) |
Adds a "put" file request, using the common components of a "put" primitive string, to the list of CFDP "put" requests. Supports both Native and ION CFDP.
[in] | source_pathname | The full path and filename of the source file. |
[in] | destination_pathname | The full path and filename of the destination file. |
[in] | destination_eid | The integer value of remote entity ID. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddPutComponentRequest | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | destination_eid, | ||
cfdp_class_of_service_type | cfdp_class_of_service | ||
) |
Adds a "put" file request, using "put" components, to the list of CFDP "put" requests. Supports Native CFDP.
[in] | source_pathname | The full path and filename of the source file. | ||||||
[in] | destination_pathname | The full path and filename of the destination file. | ||||||
[in] | destination_eid | The integer value of remote entity ID. | ||||||
[in] | cfdp_class_of_service | The class of service for the CFDP transaction. The cfdp_class_of_service_type is defined in the file "cfdp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddPutComponentRequestION | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | destination_eid, | ||
unsigned int | lifespan, | ||
bp_class_of_service_type | cos, | ||
unsigned int | ordinal, | ||
bp_transmission_mode_type | mode, | ||
bp_criticality_type | criticality | ||
) |
Adds a "put" file request, using "put" components, to the list of CFDP "put" requests. Supports ION CFDP.
[in] | source_pathname | The full path and filename of the source file. | ||||||||
[in] | destination_pathname | The full path and filename of the destination file. | ||||||||
[in] | destination_eid | The integer value of remote entity ID. | ||||||||
[in] | lifespan | The bundle's time to live. | ||||||||
[in] | cos | The BP class of service priority. The bp_class_of_service_type is defined in the file "bp_shared.h" as follows:
| ||||||||
[in] | ordinal | Only valid for expedited priority bundle transfer. Range from 0-254 with 254 as highest priority | ||||||||
[in] | mode | The BP transmission mode. The bp_transmission_mode_type is defined in the file "bp_shared.h" as follows:
| ||||||||
[in] | criticality | The BP cricality. The bp_criticality_type is defined in the file "bp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddPutRequest | ( | const char * | put_primitive | ) |
Adds a "put" file request, using a "put" primitive string, to the list of CFDP "put" requests. Supports both Native and ION CFDP.
[in] | put_primitive | CFDP primitive (e.g., put class2 "source_file_pathname" 2 "destination_file_pathname", put //// "source_file_pathname" 2 "destination_file_pathname"). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION AddRequest | ( | const char * | primitive | ) |
Adds a CFDP transaction, using a CFDP primitive string, to the appropriate list of similar CFDP transactions. Supports both NATIVE and ION CFDP.
[in] | primitive | CFDP primitive (e.g., put class2 "source_file_pathname" 2 "destination_file_pathname", get class2 "source_file_pathname" 2 "destination_file_pathname" or put //// "source_file_pathname" 2 "destination_file_pathname", get //// "source_file_pathname" 2 "destination_file_pathname"). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION BitRate | ( | unsigned int | bit_rate, |
long long | destination_eid | ||
) |
Changes the current aggregate bit rate of files being transferred by the targeted eid. Supports Native CFDP.
[in] | bit_rate | The aggregate file transfer rate in bits per second. |
[in] | destination_eid | The integer value of the local or remote entity ID. |
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION CancelAllCFDPTransactions | ( | ) |
Cancel all CFDP file transactions. Supports both NATIVE and ION CFDP.
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION CancelCFDPTransaction | ( | const char * | transaction_id | ) |
Cancel a CFDP file transaction using a transaction ID. Supports both NATIVE and ION CFDP.
[in] | transaction_id | The CFDP transaction ID |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION CancelTheCFDPTransaction | ( | const char * | destination_pathname, |
long long | destination_eid | ||
) |
Cancel a CFDP file transaction using a destination pathname and destination entity ID. This function will not cancel a CFDP file transaction if the cancel call is made immediately after submitting the CFDP file transaction and prior to the CFDP file transaction creating a transaction ID. Supports both NATIVE and ION CFDP.
[in] | destination_pathname | The full path and filename of the CFDP transaction. |
[in] | destination_eid | The destination entity ID of the CFDP transaction. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION Filestore | ( | cfdp_filestore_action_type | filestore_action, |
const char * | first_pathname, | ||
const char * | second_pathname, | ||
long long | destination_eid | ||
) |
Initiates a filestore action using the common components of a filestore primitive string. Supports both Native and ION CFDP.
[in] | filestore_action | The filestore action for the CFDP transaction. The cfdp_filestore_action_type is defined in the file "cfdp_shared.h". Not all filestore actions require two pathnames. The second pathname is ignored if it is not required. The following table identifies the cfdp_filestore_action_type and defines its required pathname parameter(s):
| ||||||||||||||||||||||||||||||
[in] | first_pathname | The full pathname of the first parameter in a filestore action. | ||||||||||||||||||||||||||||||
[in] | second_pathname | The full pathname of the second parameter (if any) in a filestore action. | ||||||||||||||||||||||||||||||
[in] | destination_eid | The integer value of remote entity ID. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION FilestoreCFDP | ( | const char * | filestore_primitive | ) |
Initiates a filestore action (e.g., create_file, delete_file, rename_file ...) using a CFDP primitive string. Supports both Native and ION CFDP.
[in] | filestore_primitive | CFDP primitive (e.g., rename_file 86400/STD_PRIORITY/0/BEST_EFFORT/NO_CUSTODY_REQUIRED "old_pathname" 2 "new_pathname"). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION FilestoreComponent | ( | cfdp_filestore_action_type | filestore_action, |
const char * | first_pathname, | ||
const char * | second_pathname, | ||
long long | destination_eid, | ||
cfdp_class_of_service_type | cfdp_class_of_service | ||
) |
Initiates a filestore action (e.g., CFDP_CREATE_FILE, CFDP_DELETE_FILE ...) using the components of a CFDP primitive string. Supports Native CFDP.
[in] | filestore_action | The filestore action for the CFDP transaction. The cfdp_filestore_action_type is defined in the file "cfdp_shared.h". Not all filestore actions require two pathnames. The second pathname is ignored if it is not required. The following table identifies the cfdp_filestore_action_type and defines its required pathname parameter(s):
| ||||||||||||||||||||||||||||||
[in] | first_pathname | The full pathname of the first parameter in a filestore action. | ||||||||||||||||||||||||||||||
[in] | second_pathname | The full pathname of the second parameter (if any) in a filestore action. | ||||||||||||||||||||||||||||||
[in] | destination_eid | The integer value of remote entity ID. | ||||||||||||||||||||||||||||||
[in] | cfdp_class_of_service | The class of service for the CFDP transaction. The cfdp_class_of_service_type is defined in the file "cfdp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION FilestoreComponentION | ( | cfdp_filestore_action_type | filestore_action, |
const char * | first_pathname, | ||
const char * | second_pathname, | ||
long long | destination_eid, | ||
unsigned int | lifespan, | ||
bp_class_of_service_type | cos, | ||
unsigned int | ordinal, | ||
bp_transmission_mode_type | mode, | ||
bp_criticality_type | criticality | ||
) |
Initiates a filestore action (e.g., CFDP_CREATE_FILE, CFDP_DELETE_FILE ...) using the components of a CFDP primitive string. Supports ION CFDP.
[in] | filestore_action | The filestore action for the CFDP transaction. The cfdp_filestore_action_type is defined in the file "cfdp_shared.h". Not all filestore actions require two pathnames. The second pathname is ignored if it is not required. The following table identifies the cfdp_filestore_action_type and defines its required pathname parameter(s):
| ||||||||||||||||||||||||||||||
[in] | first_pathname | The full pathname of the first parameter in a filestore action. | ||||||||||||||||||||||||||||||
[in] | second_pathname | The full pathname of the second parameter (if any) in a filestore action. | ||||||||||||||||||||||||||||||
[in] | destination_eid | The integer value of remote entity ID. | ||||||||||||||||||||||||||||||
[in] | lifespan | The bundle's time to live. | ||||||||||||||||||||||||||||||
[in] | cos | The BP class of service priority. The bp_class_of_service_type is defined in the file "bp_shared.h" as follows:
| ||||||||||||||||||||||||||||||
[in] | ordinal | Only valid for expedited priority bundle transfer. Range from 0-254 with 254 as highest priority | ||||||||||||||||||||||||||||||
[in] | mode | The BP transmission mode. The bp_transmission_mode_type is defined in the file "bp_shared.h" as follows:
| ||||||||||||||||||||||||||||||
[in] | criticality | The BP cricality. The bp_criticality_type is defined in the file "bp_shared.h" as follows:
|
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION FreeCFDPStructArrayMemoryAlloc | ( | cfdp_struct_type * | cfdp_struct_array_ptr | ) |
Frees the memory associated with the cfdp_struct_array that was returned by MonitorAllCFDPTransactions. Supports both NATIVE and ION CFDP.
Problems may develop when freeing the memory associated with the cfdp_struct_array if the CFDP library's compiler or run time environment does not match the application code's compiler or run time environment. This method is provided to avoid those problems by freeing the memory in the same library that allocated it.
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION Get | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | source_eid | ||
) |
Initiates a "get" file transfer using the common components of a "get" primitive string. Supports both Native and ION CFDP.
[in] | source_pathname | The full path and filename of the source file. |
[in] | destination_pathname | The full path and filename of the destination file. |
[in] | source_eid | The integer value of remote entity ID. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION GetCFDP | ( | const char * | get_primitive | ) |
Initiates a "get" file transfer using a CFDP primitive string. Supports both Native and ION CFDP.
[in] | get_primitive | CFDP primitive (e.g., get class2 "source_file_pathname" 2 "destination_file_pathname", get //// "source_file_pathname" 2 "destination_file_pathname"). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION GetComponentCFDP | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | source_eid, | ||
cfdp_class_of_service_type | cfdp_class_of_service | ||
) |
Initiates a "get" file transfer using the components of a CFDP primitive string. Supports Native CFDP.
[in] | source_pathname | The full path and filename of the source file. | ||||||
[in] | destination_pathname | The full path and filename of the destination file. | ||||||
[in] | source_eid | The integer value of remote entity ID. | ||||||
[in] | cfdp_class_of_service | The class of service for the CFDP transaction. The cfdp_class_of_service_type is defined in the file "cfdp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION GetComponentION | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | source_eid, | ||
unsigned int | lifespan, | ||
bp_class_of_service_type | cos, | ||
unsigned int | ordinal, | ||
bp_transmission_mode_type | mode, | ||
bp_criticality_type | criticality | ||
) |
Initiates a "get" file transfer using the components of a CFDP primitive string. Supports ION CFDP.
[in] | source_pathname | The full path and filename of the source file. | ||||||||
[in] | destination_pathname | The full path and filename of the destination file. | ||||||||
[in] | source_eid | The integer value of remote entity ID. | ||||||||
[in] | lifespan | The bundle's time to live. | ||||||||
[in] | cos | The BP class of service priority. The bp_class_of_service_type is defined in the file "bp_shared.h" as follows:
| ||||||||
[in] | ordinal | Only valid for expedited priority bundle transfer. Range from 0-254 with 254 as highest priority | ||||||||
[in] | mode | The BP transmission mode. The bp_transmission_mode_type is defined in the file "bp_shared.h" as follows:
| ||||||||
[in] | criticality | The BP cricality. The bp_criticality_type is defined in the file "bp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION GetConfigurationAsString | ( | unsigned int | config_buffer_size, |
char * | config_buffer | ||
) |
Returns the content of the CFDP configuration file in a character string. Supports both NATIVE and ION CFDP.
[in] | config_buffer_size | The size of the buffer that will store the configuration file as a string. |
[out] | config_buffer | The buffer that will store the configuration file as a string. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION GetDeviceMode | ( | device_mode_type * | device_mode_ptr | ) |
Returns a device_mode_type variable providing information on the configuration of the CFDP device library (DM_ION_CFDP or DM_NATIVE_CFDP CFDP). Supports both NATIVE and ION CFDP.
[out] | device_mode_ptr | A pointer to a device_mode_type variable (DM_ION_CFDP or DM_NATIVE_CFDP CFDP). |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION GetDisplayConsoleMenuFlag | ( | boolean_type * | display_console_menu_flag_ptr | ) |
Returns a boolean_type variable providing information on displaying the console application menu of command primitives. Supports both NATIVE and ION CFDP.
[out] | display_console_menu_flag_ptr | Display variable of boolean type. The boolean_type is defined in the file "ds_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION GetDisplayMessageMask | ( | unsigned int * | display_mask_ptr | ) |
Populates an unsigned integer with a mask value using the display message parameters in the configuration file. The mask may be used to determine if a message should be displayed. Supports both NATIVE and ION CFDP.
An arithmetic "and" of the mask and the message category associated with a message will produce a value greater than zero if a message should be displayed.
[out] | display_mask_ptr | A mask with bit locations representing the various enum message categories found in the file "trek_toolkit_common_api_ansi_c.h". |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION InitToolkitCfdp | ( | const char * | config_pathname | ) |
Intializes the CFDP library using parameters read from a configuration file. Supports both Native and ION CFDP.
[in] | config_pathname | The full path and filename of the CFDP configuration file. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION InitToolkitCfdpAndCryptPassphrase | ( | const char * | config_pathname, |
const char * | crypt_user_passphrase | ||
) |
Intializes the CFDP library using parameters read from a configuration file. Supports both Native and ION CFDP.
[in] | config_pathname | The full path and filename of the CFDP configuration file. |
[in] | crypt_user_passphrase | The passphrase used to unwrap/decrypt the Elliptic Curve Cryptography (ECC) private key. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION Message | ( | const char * | message, |
long long | destination_eid | ||
) |
Initiates a message transfer. Supports both Native and ION CFDP.
[in] | message | A string no greater than 256 characters in length including the NULL terminator. |
[in] | destination_eid | The integer value of remote entity ID. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION MessageCFDP | ( | const char * | message_primitive | ) |
Initiates a message transfer using a CFDP primitive string. Supports both Native and ION CFDP.
[in] | message_primitive | CFDP primitive (e.g., message class2 "Hello world" 100, message 86400/STD_PRIORITY/0/BEST_EFFORT/NO_CUSTODY_REQUIRED "Hello world" 100). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION MessageComponent | ( | const char * | message, |
long long | destination_eid, | ||
cfdp_class_of_service_type | cfdp_class_of_service | ||
) |
Initiates a "message" transfer using the components of a CFDP primitive string. Supports Native CFDP.
[in] | message | A string no greater than 256 characters in length including the NULL terminator. | ||||||
[in] | destination_eid | The integer value of remote entity ID. | ||||||
[in] | cfdp_class_of_service | The class of service for the CFDP transaction. The cfdp_class_of_service_type is defined in the file "cfdp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION MessageComponentION | ( | const char * | message, |
long long | destination_eid, | ||
unsigned int | lifespan, | ||
bp_class_of_service_type | cos, | ||
unsigned int | ordinal, | ||
bp_transmission_mode_type | mode, | ||
bp_criticality_type | criticality | ||
) |
Initiates a message transfer using the components of a CFDP primitive string. Supports ION CFDP.
[in] | message | A string no greater than 256 characters in length including the NULL terminator. | ||||||||
[in] | destination_eid | The integer value of remote entity ID. | ||||||||
[in] | lifespan | The bundle's time to live. | ||||||||
[in] | cos | The BP class of service priority. The bp_class_of_service_type is defined in the file "bp_shared.h" as follows:
| ||||||||
[in] | ordinal | Only valid for expedited priority bundle transfer. Range from 0-254 with 254 as highest priority | ||||||||
[in] | mode | The BP transmission mode. The bp_transmission_mode_type is defined in the file "bp_shared.h" as follows:
| ||||||||
[in] | criticality | The BP cricality. The bp_criticality_type is defined in the file "bp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION MonitorAllCFDPTransactions | ( | unsigned int | monitor_timeout, |
unsigned int * | transaction_count_ptr, | ||
cfdp_struct_type ** | cfdp_structure_array_ptr | ||
) |
Monitors the status of all CFDP transactions and returns when all the transactions have completed or the monitor time, in seconds, expires. Supports both NATIVE and ION CFDP.
The monitor time value should be set to the length of time in seconds needed to complete all the transactions. A cfdp_struct_array is returned with the transaction_count and status of all the transactions. The user is responsible for providing the current number of transaction as an input parameter and deallocating or freeing the memory associated with the cfdp_struct_array (i.e, free cfdp_struct_array_ptr) upon successful return of the function. Problems may develop when freeing the memory associated with the cfdp_struct_array if the CFDP library's compiler or run time environment does not match the application code's compiler or run time environment. The FreeCFDPStructArrayMemoryAlloc function is provided to avoid those problems by freeing the memory in the same library that allocated it. The cfdp_struct's cfdp_status variable may be used to determine the final status of each transaction.
[in] | monitor_timeout | The maximum time, in seconds, the function should monitor the completion status of transactions. | ||||||||||||||||||||||||||||||||||||
[in,out] | transaction_count_ptr | A pointer to the number of cfdp_structs that the array can hold (maximum value is 204800). The pointer's value is reset to the actual number of transactions/cfdp_structs upon SUCCESS or DS_ARRAY_SIZE_ERROR. | ||||||||||||||||||||||||||||||||||||
[out] | cfdp_structure_array_ptr | The array containing the cfdp_structs defined in the file "ds_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION PopulateCFDPStructArray | ( | unsigned int * | number_of_cfdp_structs_ptr, |
cfdp_struct_type * | cfdp_struct_array_ptr | ||
) |
Populates an array with cfdp structs describing current CFDP transactions. Supports both NATIVE and ION CFDP.
The cfdp_struct may be used to determine each file's transactions ID as well as monitor a file's transfer status. To enhance performance, the user must preallocate the cfdp_struct_array and provide the number_of_cfdp_structs that the cfdp_struct_array may populate. If this value is not large enough to hold the total number of cfdp_structs then DS_ARRAY_SIZE_ERROR is returned and number_of_cfdp_structs is updated with correct value for the cfdp_struct_array. The user may use the updated number_of_cfdp_structs value to preallocate the additional cfdp_structs in the cfdp_struct_array prior to calling PopulateCFDPStructArray a second time. The user is responsible for deallocating or freeing the memory associated with the cfdp_struct_array (i.e, free cfdp_struct_array_ptr) upon successful return of the function.
[in,out] | number_of_cfdp_structs_ptr | A pointer to the number of cfdp_structs that the array can hold. The pointer's value is reset to the actual number of transactions/cfdp_structs upon SUCCESS or DS_ARRAY_SIZE_ERROR. | ||||||||||||||||||||||||||||||||||||
[out] | cfdp_struct_array_ptr | The array containing the cfdp_structs. The cfdp_struct_type is defined in the file "ds_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION ProcessFileOfCFDPPrimitives | ( | const char * | pathname, |
unsigned int * | primitive_count_ptr | ||
) |
Reads a a text file of CFDP "put", "get", "filestore" and "message" primitives and adds them to the appropriate transaction lists. All valid primitive files must begin with the text string "primitve_version" followed by a verision number and the TReK device mode (e.g., NATIVE_CFDP of ION_CFDP).
Files that do not contain the "primitve_version" text string are considered invalid and will not be read. Supports both NATIVE and ION CFDP.
[in] | pathname | The full path and filename of the file of CFDP primitives. |
[out] | primitive_count_ptr | The count of CFDP primitives read from the file(s). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION Put | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | destination_eid | ||
) |
Initiates a "put" file transfer using the common components of a "put" primitive string. Supports both Native and ION CFDP.
[in] | source_pathname | The full path and filename of the source file. |
[in] | destination_pathname | The full path and filename of the destination file. |
[in] | destination_eid | The integer value of remote entity ID. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION PutCFDP | ( | const char * | put_primitive | ) |
Initiates a "put" file transfer using a CFDP primitive string. Supports both Native and ION CFDP.
[in] | put_primitive | CFDP primitive (e.g., put class2 "source_file_pathname" 2 "destination_file_pathname", put //// "source_file_pathname" 2 "destination_file_pathname"). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION PutComponentCFDP | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | destination_eid, | ||
cfdp_class_of_service_type | cfdp_class_of_service | ||
) |
Initiates a "put" file transfer using the components of a CFDP primitive string. Supports Native CFDP.
[in] | source_pathname | The full path and filename of the source file. | ||||||
[in] | destination_pathname | The full path and filename of the destination file. | ||||||
[in] | destination_eid | The integer value of remote entity ID. | ||||||
[in] | cfdp_class_of_service | The class of service for the CFDP transaction. The cfdp_class_of_service_type is defined in the file "cfdp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION PutComponentION | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | destination_eid, | ||
unsigned int | lifespan, | ||
bp_class_of_service_type | cos, | ||
unsigned int | ordinal, | ||
bp_transmission_mode_type | mode, | ||
bp_criticality_type | criticality | ||
) |
Initiates a "put" file transfer using the components of a CFDP primitive string. Supports ION CFDP.
[in] | source_pathname | The full path and filename of the source file. | ||||||||
[in] | destination_pathname | The full path and filename of the destination file. | ||||||||
[in] | destination_eid | The integer value of remote entity ID. | ||||||||
[in] | lifespan | The bundle's time to live. | ||||||||
[in] | cos | The BP class of service priority. The bp_class_of_service_type is defined in the file "bp_shared.h" as follows:
| ||||||||
[in] | ordinal | Only valid for expedited priority bundle transfer. Range from 0-254 with 254 as highest priority | ||||||||
[in] | mode | The BP transmission mode. The bp_transmission_mode_type is defined in the file "bp_shared.h" as follows:
| ||||||||
[in] | criticality | The BP cricality. The bp_criticality_type is defined in the file "bp_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RegisterCFDPDeviceData | ( | void(*)(const char *device_key, int packet_length, unsigned char *packet_buffer_ptr) | function_ptr | ) |
Register a callback function to receive cfdp_struct status messages for all transactions currently being processed by the CFDP library. Supports both NATIVE and ION CFDP.
[in] | function_ptr | A pointer to the callback function. |
Callback function:
[out] | device_key | A character string that uniquely identifies the CFDP "device" library. | ||||||||||||||||||||||||||||||||||||
[out] | packet_length | The length of a cfdp_struct. | ||||||||||||||||||||||||||||||||||||
[out] | packet_buffer_ptr | A pointer to the cfdp_struct defined in the file "ds_shared.h" as follows:
|
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RemoveAllFilestoreRequests | ( | ) |
Removes all filestore request from the list of CFDP filestore requests. Supports both Native and ION CFDP.
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RemoveAllGetRequests | ( | ) |
Removes all "get" file request in the list of CFDP "get" requests. Supports both Native and ION CFDP.
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RemoveAllMessageRequests | ( | ) |
Removes all message transfer requests in the list of CFDP filestore requests. Supports both Native and ION CFDP.
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RemoveAllPutRequests | ( | ) |
Removes all "put" file request in the list of CFDP "put" requests. Supports both Native and ION CFDP.
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RemoveAllRequests | ( | ) |
Removes all "put" and "get" file request and all filestore and message requests in the lists. Supports both NATIVE and ION CFDP.
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RemoveFilestoreComponentRequest | ( | cfdp_filestore_action_type | filestore_action, |
const char * | first_pathname, | ||
const char * | second_pathname, | ||
long long | destination_eid | ||
) |
Removes a filestore request, using the common components of a filestore primitive string, from the list of CFDP filestore requests. Supports both Native and ION CFDP.
[in] | filestore_action | The filestore action for the CFDP transaction. The cfdp_filestore_action_type is defined in the file "cfdp_shared.h". Not all filestore actions require two pathnames. The second pathname is ignored if it is not required. The following table identifies the cfdp_filestore_action_type and defines its required pathname parameter(s):
| ||||||||||||||||||||||||||||||
[in] | first_pathname | The full pathname of the first parameter in a filestore action. | ||||||||||||||||||||||||||||||
[in] | second_pathname | The full pathname of the second parameter (if any) in a filestore action. | ||||||||||||||||||||||||||||||
[in] | destination_eid | The integer value of remote entity ID. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RemoveFilestoreRequest | ( | const char * | filestore_primitive | ) |
Removes a filestore request (e.g., create_file, delete_file, rename_file ...) using a filestore primitive string, from the list of CFDP filestore requests. Supports both Native and ION CFDP.
[in] | filestore_primitive | CFDP primitive (e.g., rename_file 86400/STD_PRIORITY/0/BEST_EFFORT/NO_CUSTODY_REQUIRED "old_pathname" 2 "new_pathname"). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RemoveGetComponentRequest | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | source_eid | ||
) |
Removes a "get" file request, using "get" components, from the list of CFDP "get" requests. Supports both Native and ION CFDP.
[in] | source_pathname | The full path and filename of the source file. |
[in] | destination_pathname | The full path and filename of the destination file. |
[in] | source_eid | The integer value of remote entity ID. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RemoveGetRequest | ( | const char * | get_primitive | ) |
Removes a "get" file request, using a "get" primitive string, from the list of CFDP "get" requests. Supports both Native and ION CFDP.
[in] | get_primitive | CFDP primitive (e.g., get class2 "source_pathname" remote_entity_id "destination_pathname"). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RemoveMessageComponentRequest | ( | const char * | message, |
long long | destination_eid | ||
) |
Removes a message transfer request, using message components, from the list of CFDP message requests. Supports both Native and ION CFDP.
[in] | message | A string no greater than 256 characters in length including the NULL terminator. |
[in] | destination_eid | The integer value of remote entity ID. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RemoveMessageRequest | ( | const char * | message_primitive | ) |
Removes a message transfer request, using a message primitive string, from the list of CFDP message requests. Supports both Native and ION CFDP.
[in] | message_primitive | CFDP primitive (e.g., message class2 "Hello world" 100, message 86400/STD_PRIORITY/0/BEST_EFFORT/NO_CUSTODY_REQUIRED "Hello world" 100). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RemovePutComponentRequest | ( | const char * | source_pathname, |
const char * | destination_pathname, | ||
long long | destination_eid | ||
) |
Removes a "put" file request, using "put" components, from the list of CFDP "put" requests. Supports both Native and ION CFDP.
[in] | source_pathname | The full path and filename of the source file. |
[in] | destination_pathname | The full path and filename of the destination file. |
[in] | destination_eid | The integer value of remote entity ID. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION RemovePutRequest | ( | const char * | put_primitive | ) |
Removes a "put" file request, using a "put" primitive string, from the list of CFDP "put" requests. Supports both Native and ION CFDP.
[in] | put_primitive | CFDP primitive (e.g., put class2 "source_pathname" remote_entity_id "destination_pathname"). |
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION ReportAllCFDPTransactions | ( | ) |
Report the status of all CFDP file transaction including their current state, the transaction as a string, the size of the file being transferred and the number of bytes that have been sent. The status report is provided by the callback function associated with RegisterPrintMessage. Supports both NATIVE and ION CFDP.
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION ReportCFDPTransaction | ( | const char * | transaction_id | ) |
Report the status of a CFDP file transaction including its current state, the transaction as a string, the size of the file being transferred and the number of bytes that have been sent. The status report is provided by the callback function associated with RegisterPrintMessage. Supports both NATIVE and ION CFDP.
[in] | transaction_id | The CFDP transaction ID |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION ReportTheCFDPTransaction | ( | const char * | destination_pathname, |
long long | destination_eid | ||
) |
Report the status of a CFDP file transaction including its current state, the transaction as a string, the size of the file being transferred and the number of bytes that have been sent. The status report is provided by the callback function associated with RegisterPrintMessage. This function will not report on a CFDP file transaction if the report call is made immediately after submitting the CFDP file transaction and prior to the CFDP file transaction creating a transaction ID. Supports both NATIVE and ION CFDP.
[in] | destination_pathname | The full path and filename of the CFDP transaction. |
[in] | destination_eid | The destination entity ID of the CFDP transaction. |
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION ResetCFDPMetrics | ( | ) |
Resets or zero's the device and packet statistics. Supports both NATIVE and ION CFDP.
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION ResetCFDPStatistics | ( | ) |
Resets or zero's the device and packet statistics. Supports both NATIVE and ION CFDP.
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION ResumeAllCFDPTransactions | ( | ) |
Resume all previously suspended CFDP file transactions. Supports both NATIVE and ION CFDP.
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION ResumeCFDPTransaction | ( | const char * | transaction_id | ) |
Resume a previously suspended CFDP file transaction using a transaction ID. Supports both NATIVE and ION CFDP.
[in] | transaction_id | The CFDP transaction ID |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION ResumeTheCFDPTransaction | ( | const char * | destination_pathname, |
long long | destination_eid | ||
) |
Resume a previously suspended CFDP file transaction using a destination pathname and destination entity ID. Supports both NATIVE and ION CFDP.
[in] | destination_pathname | The full path and filename of the CFDP transaction. |
[in] | destination_eid | The destination entity ID of the CFDP transaction. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION SaveAllRequestsToFile | ( | const char * | pathname | ) |
Saves all "put" and "get" file requests and all filestore and message requests in a file. Maintains FIFO ordering. Supports both NATIVE and ION CFDP.
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION SaveToolkitCfdp | ( | const char * | config_pathname | ) |
Saves the CFDP configuration parameters in an ASCII file. Supports both Native and ION CFDP.
[in] | config_pathname | The full path and filename of the CFDP configuration file. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION SendAllFilestoreRequests | ( | ) |
Initiates all filestore requests in the list of CFDP filestore requests. Supports both Native and ION CFDP.
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION SendAllGetRequests | ( | ) |
Initiates all "get" file requests in the list of CFDP "get" requests. Supports both Native and ION CFDP.
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION SendAllMessageRequests | ( | ) |
Initiates all message transfer requests in the list of CFDP message requests. Supports both Native and ION CFDP.
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION SendAllPutRequests | ( | ) |
Initiates all "put" file requests in the list of CFDP "put" requests. Supports both Native and ION CFDP.
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION SendAllRequests | ( | ) |
Initiates all "put" and "get" file requests and all filestore and message requests in the lists of CFDP requests. Executes FIFO ordering. Supports both NATIVE and ION CFDP.
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION SendRequest | ( | const char * | primitive | ) |
Initiates a CFDP transaction using a CFDP primitive string. Supports both NATIVE and ION CFDP.
[in] | primitive | CFDP primitive (e.g., put class2 "source_file_pathname" 2 "destination_file_pathname", get class2 "source_file_pathname" 2 "destination_file_pathname" or put //// "source_file_pathname" 2 "destination_file_pathname", get //// "source_file_pathname" 2 "destination_file_pathname"). |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION StartLoggingCFDPMessages | ( | const char * | log_file_path, |
const char * | log_filename, | ||
boolean_type | log_debug_messages | ||
) |
Starts logging messages to a file. Supports both NATIVE and ION CFDP.
[in] | log_file_path | The path of the log file. If an empty string is provided, the default path is the user's home directory. | ||||||
[in] | log_filename | The base file name of the log file. When logging is stopped, this name will be concatenated with a GMT time string. | ||||||
[in] | log_debug_messages | Set this boolean_type variable to TRUE_OR_YES to log debug messages. The boolean_type is defined in the file "ds_shared.h" as follows:
|
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION StartRecordingCFDPMetricsSnapshot | ( | const char * | record_file_path, |
const char * | record_filename | ||
) |
Starts recording a snapshot of the current CFDP metrics to a file. Supports both NATIVE and ION CFDP.
The snapshot is updated when new CFDP metrics are available. The previous CFDP metrics snapshot is overwritten.
[in] | record_file_path | The path of the record file. If an empty string is provided, the default path is the user's home directory. |
[in] | record_filename | The base filename of the log file. When recording is stopped, this name will be concatenated with a GMT time string. |
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION StartRecordingCFDPStatSnapshot | ( | const char * | record_file_path, |
const char * | record_filename, | ||
boolean_type | record_packet_statistics_flag | ||
) |
Starts recording a snapshot of the current statistics to a file. Supports both NATIVE and ION CFDP.
The snapshot is updated once a second with the latest statistics. Previous statistic snapshots are overwritten.
[in] | record_file_path | The path of the record file. If an empty string is provided, the default path is the user's home directory. | ||||||
[in] | record_filename | The base filename of the log file. When recording is stopped, this name will be concatenated with a GMT time string. | ||||||
[in] | record_packet_statistics_flag | Set this boolean_type variable to TRUE_OR_YES to log both device and packet statistics messages. The boolean_type is defined in the file "ds_shared.h" as follows:
|
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION StopLoggingCFDPMessages | ( | ) |
Stops logging messages to a file, closes the log file and renames the log file by concatenating the log file name with a GMT time string. Supports both NATIVE and ION CFDP.
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION StopRecordingCFDPMetricsSnapshot | ( | ) |
Stops recording CFDP metrics to a file, closes the record file and renames the record file by concatenating the record file name with a GMT time string. Supports both NATIVE and ION CFDP.
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION StopRecordingCFDPStatSnapshot | ( | ) |
Stops recording statisitics to a file, closes the record file and renames the record file by concatenating the record file name with a GMT time string. Supports both NATIVE and ION CFDP.
Example:
void EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION SuspendAllCFDPTransactions | ( | ) |
Suspend all CFDP file transactions. Supports both NATIVE and ION CFDP.
Example:
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION SuspendCFDPTransaction | ( | const char * | transaction_id | ) |
Suspend a CFDP file transaction using a transaction ID. Supports both NATIVE and ION CFDP.
[in] | transaction_id | The CFDP transaction ID |
int EXPORT_THIS_TOOLKIT_CFDP_C_FUNCTION SuspendTheCFDPTransaction | ( | const char * | destination_pathname, |
long long | destination_eid | ||
) |
Suspend a CFDP file transaction using a destination pathname and destination entity ID. This function will not suspend a CFDP file transaction if the suspend call is made immediately after submitting the CFDP file transaction and prior to the CFDP file transaction creating a transaction ID. Supports both NATIVE and ION CFDP.
[in] | destination_pathname | The full path and filename of the CFDP transaction. |
[in] | destination_eid | The destination entity ID of the CFDP transaction. |
Example: