added returns for the dll socket calls