Neurexins and neuroligins are membrane-neuron adhesion proteins which perform essential roles in synaptic differentiation and transmission. Neuroligin deficient mutants of C. elegans are defective in detecting osmotic strength, but when they also contain a mutation in the gene coding neurexin, they recover the wild type phenotype.