socket coding is done