when i call readfile and writefile, the error code say a parameter err
according to win doc , if i open file with FILE_FLAG_OVERLAPPED , the readfile and writefile is async function and you must input a OVERLAPPED struct otherwise something error occured
and what's more , when i delete FILE_FLAG_OVERLAPPED , is seemed to be a mutex lock between readfile and writefile
if i call readfile first it will stuck read , will it's right if no net package was received, but the writefile thread is also stuck . only after readfile get a package , the writefile wake up and send a package
when i call
readfile
andwritefile
, the error code say a parameter err according to win doc , if i open file withFILE_FLAG_OVERLAPPED
, thereadfile
andwritefile
is async function and you must input a OVERLAPPED struct otherwise something error occured and what's more , when i deleteFILE_FLAG_OVERLAPPED
, is seemed to be a mutex lock betweenreadfile
andwritefile
if i callreadfile
first it will stuck read , will it's right if no net package was received, but thewritefile
thread is also stuck . only afterreadfile
get a package , thewritefile
wake up and send a package