Updated examples

split tcp and udp examples