moved all common socket support functions to a new file (transport). added new samples to show specific actions. Signed-off-by: Sergio R. Caprile <scaprile@gmail.com>