X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=doc%2Fsrc%2Fman%2Frmr_rts_msg.3.xfm;h=f20065b1c77dbbf883f234aea51f7faea3486f1a;hb=5157a97ada5447efcee4da6192798a3b6799884c;hp=bad1b2288aed3999b1674f3c810f56a1e75f7fc0;hpb=fd9cc7a5b3355146388ebdf4d558cb284c66c5f1;p=ric-plt%2Flib%2Frmr.git diff --git a/doc/src/man/rmr_rts_msg.3.xfm b/doc/src/man/rmr_rts_msg.3.xfm index bad1b22..f20065b 100644 --- a/doc/src/man/rmr_rts_msg.3.xfm +++ b/doc/src/man/rmr_rts_msg.3.xfm @@ -1,7 +1,7 @@ .if false ================================================================================== - Copyright (c) 2019 Nokia - Copyright (c) 2018-2019 AT&T Intellectual Property. + Copyright (c) 2019 Nokia + Copyright (c) 2018-2019 AT&T Intellectual Property. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,31 +17,20 @@ ================================================================================== .fi .if false - Mnemonic rmr_rts_msg_man.xfm - Abstract The manual page for the rmr_rts_msg function. - Author E. Scott Daniels - Date 28 January 2019 + Mnemonic rmr_rts_msg_man.xfm + Abstract The manual page for the rmr_rts_msg function. + Author E. Scott Daniels + Date 28 January 2019 .fi -.** if formatting with tfm, the roff.im will cause roff output to be generated -.** if formatting with pfm, then pretty postscript will be generated .gv e LIB lib -.if pfm - .im &{lib}/generic_ps.im -.ei - .gv e OUTPUT_RST use_rst - .if .ev &use_rst 1 = - .im &{lib}/rst.im - .ei - .im &{lib}/roff.im - .fi -.fi +.im &{lib}/man/setup.im &line_len(6i) &h1(RMR Library Functions) &h2(NAME) - rmr_rts_msg + rmr_rts_msg &h2(SYNOPSIS ) &indent @@ -54,11 +43,27 @@ rmr_mbuf_t* rmr_rts_msg( void* vctx, rmr_mbuf_t* msg ); &h2(DESCRIPTION) The &cw(rmr_rts_msg) function sends a message returning it to the endpoint -which sent the message rather than selecting an endpoint based on the -message type and routing table. +which sent the message rather than selecting an endpoint based on the +message type and routing table. Other than this small difference, the behaviour is exactly the same as &cw(rmr_send_msg.) +.** pull in common retry text +.im &{lib}/man/retry.im + +&h2(PAYLOAD SIZE) +When crafting a response based on a received message, the user application must +take care not to write more bytes to the message payload than the allocated message +has. +In the case of a received message, it is possible that the response needs to be +larger than the payload associated with the inbound message. +In order to use the return to sender function, the source information in the original +message must be present in the response; information which cannot be added to a +message buffer allocated through the standard RMR allocation function. +To allocate a buffer with a larger payload, and which retains the necessary sender +data needed by this function, the &ital(rmr_realloc_payload()) function must be +used to extend the payload to a size suitable for the response. + &h2(RETURN VALUE) On success, a new message buffer, with an empty payload, is returned for the application to use for the next send. @@ -66,18 +71,18 @@ The state in this buffer will reflect the overall send operation state and shoul &cw(RMR_OK.) &space -If the state in the returned buffer is anything other than &cw(UT_OK,) the user application +If the state in the returned buffer is anything other than &cw(RMR_OK,) the user application may need to attempt a retransmission of the message, or take other action depending on the -setting of &cw(errno) as described below. +setting of &cw(errno) as described below. &space -In the event of extreme failure, a NULL pointer is returned. In this case the value of -&cw(errno) might be of some use, for documentation, but there will be little that the +In the event of extreme failure, a nil pointer is returned. In this case the value of +&cw(errno) might be of some use, for documentation, but there will be little that the user application can do other than to move on. &h2(ERRORS) The following values may be passed back in the &ital(state) field of the returned message -buffer. +buffer. &space &beg_dlist(.75i : ^&bold_font ) @@ -102,7 +107,7 @@ The following values may be assigned to &cw(errno) on failure. &di(EMSGSIZE) The underlying transport refused to accept the message because of a size value issue (message was not attempted to be sent). &half_space -&di(EFAULT) The message referenced by the message buffer is corrupt (NULL pointer or bad internal length). +&di(EFAULT) The message referenced by the message buffer is corrupt (nil pointer or bad internal length). &half_space &di(EBADF) Internal RMR error; information provided to the message transport environment was not valid. @@ -141,11 +146,9 @@ rmr_rcv_specific(3), rmr_ready(3), rmr_fib(3), rmr_has_str(3), +rmr_set_stimeout(3), rmr_tokenise(3), rmr_mk_ring(3), rmr_ring_free(3) .ju on - -.qu -