The functions in this section take GRAM request (or query) and reply messages, and frame them with HTTP headers, so that they can be sent. More...
![]() |
The functions in this section take GRAM request (or query) and reply messages, and frame them with HTTP headers, so that they can be sent.
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.
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 | |||
) |
Frame a GRAM queryAdds an HTTP frame around a GRAM protocol message.
The frame is constructed from the URL, the GRAM protocol message type header, and a message length header. The framed message is returned in a new string pointed to by framedmsg parameter and the length of the framed message is returned in the framedsize parameter.
url | The URL of the GRAM resource to contact. | |
msg | The message to be framed. | |
msgsize | The length of the unframed message. | |
framedmsg | A return parameter, which will contain the framed message upon this function's return. | |
framedsize | A return parameter, which will contain the length of the framed message. |
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 | |||
) |
Frame a GRAM replyAdds an HTTP frame around a GRAM protocol reply.
The frame is constructed from the message code passed as the first parameter. The framed reply is returned in a new string pointed to by framedmsg parameter and the length of the framed reply is returned in the framedsize parameter.
code | The HTTP response code to associate with this reply. | |
msg | The reply to be framed. | |
msgsize | The length of the unframed reply. | |
framedmsg | A return parameter, which will contain the framed reply upon this function's return. | |
framedsize | A return parameter, which will contain the length of the framed reply. |
about globus |
globus toolkit |
dev.globus
Comments? webmaster@globus.org