Add alarm generation when application is slow
[ric-plt/lib/rmr.git] / doc / src / man / rmr_get_rcvfd.3.xfm
index 5ad6f06..12903c7 100644 (file)
@@ -1,7 +1,7 @@
 .if false
 ==================================================================================
-   Copyright (c) 2019 Nokia
-   Copyright (c) 2018-2019 AT&T Intellectual Property.
+   Copyright (c) 2019-2020 Nokia
+   Copyright (c) 2018-2020 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.
@@ -62,7 +62,7 @@ The following error values are specifically set by this RMR function. In some ca
 error message of a system call is propagated up, and thus this list might be incomplete.
 
 &beg_dlist(.75i : ^&bold_font )
-&di(EINVAL) The use of this function is invalid in this environment.
+&ditem(EINVAL) The use of this function is invalid in this environment.
 &end_dlist
 
 &h2(EXAMPLE)
@@ -85,8 +85,9 @@ int main() {
     rmr_mbuf_t* msg = NULL;
     int nready;
     int i;
+    int norm_msg_size = 1500;               // 95% messages are less than this
 
-    mrc = rmr_init( "43086", RMR_MAX_RCV_BYTES, RMRFL_NONE );
+    mrc = rmr_init( "43086", norm_msg_size, RMRFL_NONE );
     rcv_fd = rmr_get_rcvfd( mrc );
 
     ep_fd = epoll_create1( 0 );             // initialise epoll environment