-/*
- * dopacket
- *
- * cptr - pointer to client structure for which the buffer data
- * applies.
- * buffer - pointer to the buffer containing the newly read data
- * length - number of valid bytes of data in the buffer
- *
- * Note:
- * It is implicitly assumed that dopacket is called only
- * with cptr of "local" variation, which contains all the
- * necessary fields (buffer etc..)
+/** Handle received data from a directly connected server.
+ * @param[in] cptr Peer server that sent us data.
+ * @param[in] buffer Input buffer.
+ * @param[in] length Number of bytes in input buffer.
+ * @return 1 on success or CPTR_KILLED if the client is squit.