Abstract the Connection to support intra-JVM node communications without the need of actual sockets.