|
Store incoming sequence number to relevant buffer. This function adds sequence number of incoming packet to given buffer identified by its id. If it's the first sequence number saving for this session, it inserts the pointer of this session to the right place in structure for sending ack packets (depending on its latest time to send). -
Parameters:
-
id_buffer |
the identification number of ack buffer. |
sid |
the identification number of session that this sequence number relates to (used when this session isn't created). |
sender |
pointer to the place where the information about actual packet's sender is stored (it's the same as above - used when this session isn't created). |
seq |
the sequence number that has to be stored. |
latest_send_time |
the latest time when the ack packet must be sent. |
maximal_count |
the maximal count of sequence numbers in one ack packet (after reaching this count the ack packet is immediately sent). |
-
Returns:
-
zero success
-
Returns:
-
nonzero related error code if something failed (for further information see documentation of file
errors.h) . |