-// This function sets the give id as confirmed in the register
-func (r *Registry) setSubscriptionToConfirmed(sn uint16) {
- r.mutex.Lock()
- defer r.mutex.Unlock()
- r.register[sn].Confirmed = true
-}
-
-//This function sets the given id as unused in the register
-func (r *Registry) deleteSubscription(sn uint16) {
- r.mutex.Lock()
- defer r.mutex.Unlock()
- r.register[sn].Confirmed = false
-}
-
-//This function releases the given id as unused in the register
-func (r *Registry) releaseSequenceNumber(sn uint16) bool {