select() timeout cannot be less than 5ms to prevent system overload
data type of socket function's data buffer size changed to long
fixed hard fault error due to wrong data type passed in socket sendto()