Changed all socket to nonblock mode; Use raw socket instead of packet socket