initial check for closed socket from clients side
added placeholder for forced close for SR_mode 5,6
added -lm library to Makefile
data_name replaced by channel_name