- aim_tx_flushqueue()
-
- This the function is responsable for putting the queued commands
- onto the wire. This function is critical to the operation of
- the queue and therefore is the most prone to brokenness. It
- seems to be working quite well at this point.
-
- Procedure:
- 1) Traverse the list, only operate on commands that are unlocked
- and haven't been sent yet.
- 2) Lock the struct
- 3) Allocate a temporary buffer to store the finished, fully
- processed packet in.
- 4) Build the packet from the command_tx_struct data.
- 5) Write the packet to the socket.
- 6) If success, mark the packet sent, if fail report failure, do NOT
- mark the packet sent (so it will not get purged and therefore
- be attempted again on next call).
- 7) Unlock the struct.
- 8) Free the temp buffer
- 9) Step to next struct in list and go back to 1.
-
+ * aim_tx_flushqueue()
+ *
+ * This the function is responsable for putting the queued commands
+ * onto the wire. This function is critical to the operation of
+ * the queue and therefore is the most prone to brokenness. It
+ * seems to be working quite well at this point.
+ *
+ * Procedure:
+ * 1) Traverse the list, only operate on commands that are unlocked
+ * and haven't been sent yet.
+ * 2) Lock the struct
+ * 3) Allocate a temporary buffer to store the finished, fully
+ * processed packet in.
+ * 4) Build the packet from the command_tx_struct data.
+ * 5) Write the packet to the socket.
+ * 6) If success, mark the packet sent, if fail report failure, do NOT
+ * mark the packet sent (so it will not get purged and therefore
+ * be attempted again on next call).
+ * 7) Unlock the struct.
+ * 8) Free the temp buffer
+ * 9) Step to next struct in list and go back to 1.
+ *