GLOBUS_GASS_TRANSFER_REFERRAL_DESTROY(3)
π globus_gass_transfer_referral(3) π
okay bestie, welcome to the Library Functions Manual for globus_gass_transfer_referral, the little glow-up corner of the globus_gass_transfer library that handles referrals. No, not the "my friend says you should hire me" kind β the URL kind. Let's get into it π
πΈ NAME πΈ
globus_gass_transfer_referral β Referrals
- GASS Referrals. That's the whole vibe. Periodt.
β¨ SYNOPSIS β¨
Functions
globus_size_t globus_gass_transfer_referral_get_count
(globus_gass_transfer_referral_t *referral)
char * globus_gass_transfer_referral_get_url
(globus_gass_transfer_referral_t *referral, globus_size_t index)
int globus_gass_transfer_referral_destroy
(globus_gass_transfer_referral_t *referral)
π¦ DETAILED DESCRIPTION π¦
GASS Referrals. That's it, that's the description header, but let's actually talk about it.
Referrals
The GASS Transfer API supports referring URL requests to alternate URLs via referrals. So basically, referrals are pointers to another URL or URLs which contain the same file as the original location which a client has requested of a server. Not me gatekeeping β the server is literally telling your client "the file's over here too, bestie" π«Ά
Referrals may span multiple protocol schemes, though not all protocols may be able to generate referrals. For example, an HTTP server may refer a client to another HTTP server, an HTTPS server. Cross-scheme glow-ups are real β¨
Upon receiving a referred response from a server, a client should query the request handle to determine from where the file can be retrieved. That's your homework, not optional, no cap.
π§ FUNCTION DOCUMENTATION π§
int globus_gass_transfer_referral_destroy (globus_gass_transfer_referral_t * referral)
Free all memory used by a referral.
This function frees all memory used by this referral. After calling this function, the strings returned by calling globus_gass_transfer_referral_get_url() must not be accessed. Any further attempts to extract information from this referral will fail. π Like, gone-gone. That memory said "I'm leaving" and left.
Parameters
- referral β The referral to destroy.
Return values
GLOBUS_SUCCESSβ The referral was successfully destroyed. Slay.GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTERβ The referral parameter wasGLOBUS_NULL. It could not be destroyed. π
globus_size_t globus_gass_transfer_referral_get_count (globus_gass_transfer_referral_t * referral)
Get the number of URLs in this referral.
This function examines the referral to determine if the number of URLs which are contained in it. Each of these URLs should either point to another referral, or to a URL containing the equivalent file as the original URL request which caused this referral. It's giving "how many places can this file be at, let's count them" π₯
Parameters
- referral β The referral structure to query.
Returns
This function returns the number of URL entries in the referral, or 0, if there are none. Zero. Nada. Empty. We've all been there π
char * globus_gass_transfer_referral_get_url (globus_gass_transfer_referral_t * referral, globus_size_t index)
Get a URL string from a referral.
This function examines the referral to retrieve a URL string from it. A valid referral will contain one or more strings. They are indexed from 0 to the value returned by globus_gass_transfer_referral_get_count() - 1. So yes, zero-indexed, the classic π
The string returned by this function must not be freed by the caller. It will remain valid until the referral structure is destroyed. Hands off, bestie β that string isn't yours to free, it belongs to the referral until the referral gets destroyed π
Parameters
- referral β The referral structure to query.
- index β The URL to extract from the referral.
Returns
This function returns a string pointer containing the URL, or NULL if the index or referral were invalid. Bad index? Bad referral? NULL. That's the vibe check failing β
π AUTHOR π
Generated automatically by Doxygen for globus_gass_transfer from the source code. Not a human, just a very hardworking doc generator doing its thing, and honestly? Respect π«Ά
and that's the whole page, bestie!! this wasglobus_gass_transferVersion 9.5, from theglobus_gas...er_referral(3)era β stay hydrated, free your referrals, and never access a freed string πβ¨ππ¦
π¦ where this page comes from
- epel 10: globus-gass-transfer-doc 9.5-1.el10_2 Β· Apache-2.0
- fedora 43: globus-gass-transfer-doc 9.5-1.fc43 Β· Apache-2.0
- fedora 44: globus-gass-transfer-doc 9.5-2.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-gass-transfer-doc 9.5-1 Β· Apache-2.0
- ubuntu stonking: libglobus-gass-transfer-doc 9.5-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms