Sets this's code: the code is specific to the provider being used.
If you want to have a common understanding of the event codes, use get_gda_code instead.
This function should not be called directly
a ConnectionEvent.
a code.