Is there a way to limit multicasting to a single interface on a machine that has multiple interfaces? [closed]

I am writing networking software in C on Linux. I’m using a mix of Fedora, CentOS 7, and Rocky 8 machines. I have implemented IP v4 multicasting to transmit information from my sender to any number of receivers on the local network. The sender may have more than one network interfaces. I want to know if there’s a way to limit this traffic to just one of its network interfaces, and which system calls and/or parameters are used for this purpose.