The code that manages the BP_CONNECTION structure is called the wrapper. Its responsibilities include mapping of channel numbers to profile-instances, mapping of URIs to profile registrations, and invoking profiles at the appropriate time as messages arrive on the socket. It also manages input/output threads, profile threads, and locks to prevent conflicts. It manages tuning resets and graceful termination of sessions and controls. Finally, the wrapper indirectly manages any information that is inter-channel in nature, such as the SASL identity, the TLS encryption keys, and any other information a profile might wish to make available to other profiles.
role Either INST_ROLE_INITIATOR or INST_ROLE_LISTENER
mode Either "plaintext" or "encrypted"
status The connection's current status, one of:
channel_instance A pointer to the channels known (started or being started) on this connection.
user_ptr A user-defined pointer.