Untested implementation of connection & listener