implementing tcp, udp, multicast and updating examples