Connection-local variables provide a general mechanism for different variable settings in buffers with a remote connection (see Remote Files in The GNU Emacs Manual). They are bound and set depending on the remote connection a buffer is dedicated to.