Setting and retrieving capabilities

Before calling ct_connect, an application:

After a connection is open, an application: