'Callbacks that add the required behavior for a channel when
connecting and connected to a server.'

def _add_callbacks(self):

    self.callbacks.add(self.channel_number, spec.Basic.GetEmpty, self._on_getempty, False)
    self.callbacks.add(self.channel_number, spec.Basic.Cancel, self._on_cancel, False)
    self.callbacks.add(self.channel_number, spec.Channel.Flow, self._on_flow, False)
    self.callbacks.add(self.channel_number, spec.Channel.Close, self._on_close, True)
