add header notification, update demo, fix udp socket bug