]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/interfaces/AMSend.nc
Fix the issue with tos-deluge not timing out properly.
[tinyos-2.x.git] / tos / interfaces / AMSend.nc
index 6ccc5af86e5a88688edfa77d266262096ded4a0b..36ccc73e5d8200d00d75c50559ccd2e8fe6d5978 100644 (file)
@@ -1,5 +1,5 @@
 // $Id$
-/*                                                                     tab:4
+/*
  * "Copyright (c) 2005 The Regents of the University  of California.  
  * All rights reserved.
  *
@@ -57,7 +57,7 @@ interface AMSend {
     * will signal sendDone with error code.
     *
     * @param addr   address to which to send the packet
-    * @param msg    the packet
+    * @param 'message_t* ONE msg'    the packet
     * @param len    the length of the data in the packet payload
     * @return       SUCCESS if the request to send succeeded and a
     *               sendDone will be signaled later, EBUSY if the
@@ -78,7 +78,7 @@ interface AMSend {
     * A successful call to cancel must always result in a 
     * sendFailed event, and never a sendSucceeded event.
     * 
-    * @param  msg     the packet whose transmission should be cancelled.
+    * @param  'message_t* ONE msg'    the packet whose transmission should be cancelled.
     * @return SUCCESS if the transmission was cancelled, FAIL otherwise.
     * @see    sendDone
     */
@@ -89,7 +89,7 @@ interface AMSend {
     * the message buffer sent, and <tt>error</tt> indicates whether
     * the send was successful.
     *
-    * @param  msg   the packet which was submitted as a send request
+    * @param  'message_t* ONE msg'   the packet which was submitted as a send request
     * @param  error SUCCESS if it was sent successfully, FAIL if it was not,
     *               ECANCEL if it was cancelled
     * @see send
@@ -114,15 +114,14 @@ interface AMSend {
 
    /**
     * Return a pointer to a protocol's payload region in a packet.
-    * The length of this region is maxPayloadLength(). This command
-    * behaves similarly to <tt>Packet.getPayload</tt> (minus the
-    * length parameter) and is included in this interface
+    * This command behaves identically to <tt>Packet.getPayload</tt>
+    * (minus the length parameter) and is included in this interface
     * as a convenience.
     *
-    * @param  msg    the packet
-    * @return        the payload of the packet
+    * @param  'message_t* ONE msg'    the packet
+    * @return 'void* COUNT(len)'      the payload of the packet
     */
-  command void* getPayload(message_t* msg);
+  command void* getPayload(message_t* msg, uint8_t len);
 
   
 }