Implements Connection both CPP and Objective-C.