socket style api for windows is called