Move code for work with socket to util module