I think you are referring to a "No Hub" flexible coupler for your piping. They come in various diameters to fit what ever you are trying to join. No gluing and you can disconnect and reconnect easily.
Here is a sample of No Hub couplers from Amazon to give you an idea.
https://www.amazon.com/s?k=no+hub+co...s_ts-doa-p_5_6