- update sample codes for socket and RTD link