]> rtime.felk.cvut.cz Git - frescor/fna.git/commitdiff
i add FROM when receiving
authorsangorrin <sangorrin@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Tue, 19 Jun 2007 07:46:07 +0000 (07:46 +0000)
committersangorrin <sangorrin@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Tue, 19 Jun 2007 07:46:07 +0000 (07:46 +0000)
git-svn-id: http://www.frescor.org/private/svn/frescor/fna/trunk@501 35b4ef3e-fd22-0410-ab77-dab3279adceb

include/fna.h

index b672a7e1c3bcc227167197879dea166468277cc2..af375c5c71cfe373332ff6c94931312168118adc 100644 (file)
@@ -627,6 +627,7 @@ int fna_send_async
  * @param[out] buffer Buffer for storing the received message
  * @param[in] buffer_size The size in bytes of this buffer
  * @param[out] received_bytes The actual number of received bytes
+ * @param[out] from Address of the sender node
  *
  * @return
  *   0 if there are no errors \n
@@ -642,7 +643,8 @@ int fna_receive_sync
    (const frsh_receive_endpoint_t *endpoint,
     void *buffer,
     const size_t buffer_size,
-    size_t *received_bytes);
+    size_t *received_bytes,
+    frsh_network_address_t *from);
 
 /**
  * fna_receive_async()
@@ -656,6 +658,7 @@ int fna_receive_sync
  * @param[out] buffer Buffer for storing the received message
  * @param[in] buffer_size The size in bytes of this buffer
  * @param[out] received_bytes The actual number of received bytes
+ * @param[out] from Address of the sender node
  *
  * @return
  *   0 if there are no errors \n
@@ -672,7 +675,8 @@ int fna_receive_async
    (const frsh_receive_endpoint_t *endpoint,
     void *buffer,
     const size_t buffer_size,
-    size_t *received_bytes);
+    size_t *received_bytes,
+    frsh_network_address_t *from);
 
 /**
  * fna_send_endpoint_get_status()