globus_gram_protocol_framing(3) | globus_gram_protocol | globus_gram_protocol_framing(3) |
globus_gram_protocol_framing - Message Framing
- Message Framing.
int globus_gram_protocol_frame_request (const char *url,
const globus_byte_t *msg, globus_size_t msgsize, globus_byte_t **framedmsg,
globus_size_t *framedsize)
Create a HTTP-framed copy of a GRAM request. int
globus_gram_protocol_frame_reply (int code, const globus_byte_t *msg,
globus_size_t msgsize, globus_byte_t **framedmsg, globus_size_t *framedsize)
Create a HTTP-framed copy of a GRAM reply.
Message Framing.
The functions in this section frame a GRAM request, query, or reply message with HTTP headers compatible with the GRAM2 protocol parsers in GT2 GT3, and GT4.
These functions should be used when an application wants to control the way that the GRAM Protocol messages are sent, while still using the standard message formatting and framing routines. An alternative set of functions in the Message I/O section of the manual combine message framing with callback-driven I/O.
Create a HTTP-framed copy of a GRAM reply. The globus_gram_protocol_frame_reply() function adds HTTP 1.1 framing around the input message. The framed message includes HTTP headers relating the the status of the operation being replied to and the length of the message content. The framed message is returned by modifying framedmsg to point to a newly allocated string. The integer pointed to by the framedsize parameter is set to the length of this message.
Parameters
Returns
Return values
Create a HTTP-framed copy of a GRAM request. The globus_gram_protocol_frame_request() function adds HTTP 1.1 framing around the input message. The framed message includes HTTP headers relating the the destination URL and the length of the message content. The framed message is returned by modifying framedmsg to point to a newly allocated string. The integer pointed to by the framedsize parameter is set to the length of this message.
Parameters
Returns
Return values
Generated automatically by Doxygen for globus_gram_protocol from the source code.
Tue Jul 5 2022 | Version 13.6 |