Multicasting Join Group

I am trying to use multicasting with the Ethernet shield. To get multicast messages forwarded to your subnet you must join the multicast group. Does anyone have an example of joining a multicast group?