I developed this code because my fog server has an 802.1q trunked presence on all networks and multicasting by default only binds to 1 interface. This code finds out which interface has the ip/hostname of the master nfs server and makes this the interface to which the multicast udp-sender binds to.
this is my very first code submission ever and until last night i had very little experience with php/mysql - but i have been making simple perl scripts for years. While this may be ugly looking it works and does so consistently.
fog rocks, keep up the good work.
getInterface function for functions.php and Multicast.Task.class.php