globus_ftp...art_marker(3)
π globus_ftp_client_restart_marker β Restart Markers π
okay bestie, welcome to the globus_ftp...art_marker(3) page from the Library Functions Manual π β yes the title is literally abbreviated like that, iykyk, we don't question it. This is the whole tea on restart markers: how to pick up a file transfer from a known spot instead of starting over like a clown. slay
β¨ NAME β¨
globus_ftp_client_restart_marker β Restart Markers
- Restart Markers.
(yeah it says it twice, it's that iconic π )
β¨ SYNOPSIS β¨
πΈ Data Structures
- union
globus_ftp_client_restart_marker_tβ Restart marker.
πΈ Functions
globus_result_t globus_ftp_client_restart_marker_init
(globus_ftp_client_restart_marker_t *marker)
globus_result_t globus_ftp_client_restart_marker_copy
(globus_ftp_client_restart_marker_t *new_marker,
globus_ftp_client_restart_marker_t *marker)
globus_result_t globus_ftp_client_restart_marker_destroy
(globus_ftp_client_restart_marker_t *marker)
globus_result_t globus_ftp_client_restart_marker_insert_range
(globus_ftp_client_restart_marker_t *marker, globus_off_t offset,
globus_off_t end_offset)
globus_result_t globus_ftp_client_restart_marker_set_ascii_offset
(globus_ftp_client_restart_marker_t *marker, globus_off_t offset,
globus_off_t ascii_offset)
globus_result_t globus_ftp_client_restart_marker_set_offset
(globus_ftp_client_restart_marker_t *marker, globus_off_t offset)
globus_result_t globus_ftp_client_restart_marker_get_total
(globus_ftp_client_restart_marker_t *marker, globus_off_t
*total_bytes)
globus_result_t globus_ftp_client_restart_marker_to_string
(globus_ftp_client_restart_marker_t *marker, char **marker_string)
globus_result_t globus_ftp_client_restart_marker_from_string
(globus_ftp_client_restart_marker_t *marker, const char
*marker_string)
β¨ Detailed Description β¨
Restart Markers. π«
π FTP Restart Markers
The Globus FTP Client library provides the ability to start a file transfer from a known location into the file. This is accomplished by passing a restart marker to the globus_ftp_client_get(), globus_ftp_client_put(), or globus_ftp_client_third_party_transfer() functions.
no cap β that's the whole plot: marker goes in, transfer resumes instead of redoing the entire thing like it forgot its keys π
β¨ Function Documentation β¨
π¦ globus_result_t globus_ftp_client_restart_marker_copy (globus_ftp_client_restart_marker_t * new_marker, globus_ftp_client_restart_marker_t * marker)
Create a copy of a restart marker.
This function copies the contents of marker to new_marker. dupe it, bestie, but like, legally π
Parameters
- new_marker β A pointer to a new restart marker.
- marker β The marker to copy.
See also
globus_ftp_client_restart_marker_init(),globus_ftp_client_restart_marker_destroy()
π¦ globus_result_t globus_ftp_client_restart_marker_destroy (globus_ftp_client_restart_marker_t * marker)
Destroy a restart marker.
Parameters
- marker β Restart marker. This marker must be initialized by either calling
globus_ftp_client_restart_marker_init()orglobus_ftp_client_restart_marker_copy()
β οΈ real talk: it's gotta be initialized first, either viaglobus_ftp_client_restart_marker_init()orglobus_ftp_client_restart_marker_copy(), or you're just out here destroying vibes π
See also
globus_ftp_client_restart_marker_t,globus_ftp_client_restart_marker_init(),globus_ftp_client_restart_marker_copy()
π¦ globus_result_t globus_ftp_client_restart_marker_from_string (globus_ftp_client_restart_marker_t * marker, const char * marker_string)
Initialize a restart marker from a string.
This function initializes a new restart, marker, based on the marker_string parameter. The string may be either a single offset for a stream-mode restart marker, or a comma-separated list of start-end ranges. comma-separated ranges?? it's giving very "list of situationships" π
Parameters
- marker β The restart marker to be initialized.
- marker_string β The string containing a textual representation of a restart marker.
See also
- Restart Markers
π¦ globus_result_t globus_ftp_client_restart_marker_get_total (globus_ftp_client_restart_marker_t * marker, globus_off_t * total_bytes)
Get total bytes accounted for in restart marker
This function will return the sum of all bytes accounted for in a restart marker. If this restart marker contains a stream offset then this value is the same as the offset (not the ascii offset) that it was set with. If it is a range list, it a sum of all the bytes in the ranges. math but make it β¨accountingβ¨
Parameters
- marker β A previously initialized or copied restart marker
- total_bytes β pointer to storage for total bytes in marker
Returns
- Error on NULL marker or total bytes
π pass a NULL and it WILL error out. it's not being dramatic, it's being correct.
π¦ globus_result_t globus_ftp_client_restart_marker_init (globus_ftp_client_restart_marker_t * marker)
Initialize a restart marker.
Parameters
- marker β New restart marker.
See also
globus_ftp_client_restart_marker_t,globus_ftp_client_restart_marker_destroy()
π¦ globus_result_t globus_ftp_client_restart_marker_insert_range (globus_ftp_client_restart_marker_t * marker, globus_off_t offset, globus_off_t end_offset)
Insert a range into a restart marker
This function updates a restart marker with a new byte range, suitable for using to restart an extended block mode transfer. Adjacent ranges within the marker will be combined into a single entry in the marker. adjacent ranges get merged β they said "we're one now" π«Ά
The marker must first be initialized by calling globus_ftp_client_restart_marker_init() or globus_ftp_client_restart_marker_copy().
A marker can only hold a range list or a stream offset. Calling this function after calling globus_ftp_client_restart_marker_set_offset() will result in a marker suitable only for use restarting an extended block mode transfer.
Parameters
- marker β A restart marker
- offset β The starting offset of the range.
- end_offset β The ending offset of the range.
See also
globus_ftp_client_restart_marker_set_offset()globus_ftp_client_operationattr_set_mode()
π¦ globus_result_t globus_ftp_client_restart_marker_set_ascii_offset (globus_ftp_client_restart_marker_t * marker, globus_off_t offset, globus_off_t ascii_offset)
Set the offset for a restart marker.
This function modifies a restart marker to contain a stream offset, suitable for using to restart a steam mode transfer. (yes it says "steam" in the original, we are keeping it exactly, no edits, that's the rule π)
The marker must first be initialized by calling globus_ftp_client_restart_marker_init() or globus_ftp_client_restart_marker_copy().
A marker can only hold a range list or a stream offset. Calling this function after calling globus_ftp_client_restart_marker_insert_range() will delete the ranges associated with the marker, and replace it with a marker suitable only for use restarting a stream mode transfer.
When restarting an ASCII type transfer, use globus_ftp_client_restart_marker_set_ascii_offset() to set both the offset used in the local representation of an ACSII file, and the network representation of the ASCII file. For UNIX systems, the former includes counts newlines as one character towards the file offset, and the latter counts them as 2 characters (CRLF). one newline locally = two chars (CRLF) on the network. character development, literally π
Parameters
- marker β A restart marker
- offset β The local stream offset.
- ascii_offset β The network ascii representation of the offset.
See also
globus_ftp_client_restart_marker_insert_range(),globus_ftp_client_restart_marker_set_offset(),globus_ftp_client_operationattr_set_mode(),globus_ftp_client_operationattr_set_type()
π¦ globus_result_t globus_ftp_client_restart_marker_set_offset (globus_ftp_client_restart_marker_t * marker, globus_off_t offset)
Set the offset for a restart marker.
This function modifies a restart marker to contain a stream offset, suitable for using to restart a steam mode transfer.
The marker must first be initialized by calling globus_ftp_client_restart_marker_init() or globus_ftp_client_restart_marker_copy().
A marker can only hold a range list or a stream offset. Calling this function after calling globus_ftp_client_restart_marker_insert_range() will delete the ranges associated with the marker, and replace it with a marker suitable only for use restarting a stream mode transfer. heads up bestie: your ranges are GONE. deleted. replaced. it's a whole rebrand π
When restarting an ASCII type transfer, the offset must take into account the additional carriage return characters added to the data stream.
Parameters
- marker β A restart marker
- offset β The stream offset
See also
globus_ftp_client_restart_marker_insert_range(),globus_ftp_client_operationattr_set_mode(),globus_ftp_client_operationattr_set_type()
π¦ globus_result_t globus_ftp_client_restart_marker_to_string (globus_ftp_client_restart_marker_t * marker, char ** marker_string)
Create a string representation of a restart marker.
This function sets the marker_string parameter to point to a freshly allocated string suitable for sending as an argument to the FTP REST command, or for a later call to globus_ftp_client_restart_marker_from_string(). it's giving glow-up: marker becomes a string, string becomes a marker again π
The string pointed to by marker_string must be freed by the caller.
π¨ NOT ME FORGETTING TO FREE IT β bestie, the caller frees the string. that's on you, nobody else is doing it. π₯
Parameters
- marker β An initialized FTP client restart marker.
- marker_string β A pointer to a char * to be set to a freshly allocated marker string.
See also
- Restart Markers
β¨ Author β¨
Generated automatically by Doxygen for globus_ftp_client from the source code. the robots wrote it, we just made it cute π
and that's the page, bestie! π this was globus_ftp_client Version 9.9, from the globus_ftp...art_marker(3) page in the Library Functions Manual β tysm for reading, you ate that, periodt π
β¨π¦
π¦ where this page comes from
- epel 10: globus-ftp-client-doc 9.9-1.el10_2 Β· Apache-2.0
- fedora 43: globus-ftp-client-doc 9.9-1.fc43 Β· Apache-2.0
- fedora 44: globus-ftp-client-doc 9.9-2.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-ftp-client-doc 9.9-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms