Working on socket connection in hid.c