added udp support

added udp support for matlab client of kmc