Changed the naming of "wsaFlags" into "flags".