Update sock.h

update for fixed upd connection scheme