-
Notifications
You must be signed in to change notification settings - Fork 421
how to use userheader in the untyped request/response #1336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@qclzdh request-response does not support a user-header since it already uses that portion of the chunk for it's own header. This means the segmentation must be done by the user on the user-payload portion of the chunk |
@elBoberido Thanks, if there is no smart way, i will pack them together. It looks a little ugly, but should work well. |
@elBoberido is there any limitation about payloadAlignment, for example payloadSize % payloadAlignment must equal to 0 ? |
@qclzdh it's not the most convenient solution but should work. If there is a big demand for a user-header with request-response we can think of extending the API but it might become quite complex on the implementation side |
@qclzdh yes, the assumption was that the payload will contain a struct and therefore the same restrictions apply |
Yes, userHeader is mandatory, please consider to extend the API. |
@qclzdh @elBoberido I've not come to a final conclusion, but my feeling is the custom user header could also be helpful for |
From a user point view, a custom user header would be much more helpful, it's better to support this kind of feature. |
If i have a common IPC send function as following code, parameter msgPayload is untyped, it may changed according some other conditions, and paramter cnt is the number of msgPayload, so the total size i want to send is header + sizeof(msgPayload) * count
it is very easy to wrap by using iox untyped_publisher funtions, since loan functions of untyped_publisher has "head" paramter.
and i can easily wrap like this,
but how do i use customer header and untyped payload in request/response, it looks like request/response header size is fixed
The text was updated successfully, but these errors were encountered: