-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Error code : 87 #27
Conversation
I don't expect visual code files to be usefull for this MR, aren't they ? |
Hello @smallru8, can you remove the build32 and build64 folders? I don't think they are needed here and they take unnecessary space in the repository. Files allowing libtuntap to be used in another language such as Java should be located in I pushed two commits (8fd6125 and 173ee44) implementing just this in branch BounceGateVPN-master so you can cherry-pick them. I implemented a third commit (ac05686) modifying the target to output a new library named libtuntap4j which includes your JNI interface. |
Fix memory leak Change reading network packets by 512-bytes to ```tuntap_get_mtu``` return value
move jni interface to bindings
-Test.java : Test tap device. -Tuntap.java : libtuntap java interface
Hello @Aversiste , I'm sorry i forgot to delete build32 and build64 folders. I have deleted them. I have also fixed and adjusted some problems.
|
Excellent, thank you. If it is possible I would like to add an automatic test to our CI pipeline using your Test.java, but I fail to execute it:
My Java skills are pretty much non existent, so what is going wrong? |
Why are you closing this PR ? It seemed good. |
Win32API ReadFile WriteFile need OVERLAPPED parameter or remove FILE_FLAG_OVERLAPPED flag.
I have tested it in win10, and it can read and write tap device normally.