LaKabane / libtuntap

The portable Tun/Tap devices configuration utility
194 stars 63 forks source link

it don't work in my win10 #44

Closed ririyeye closed 2 months ago

ririyeye commented 1 year ago

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