Implement read callbacks to remove the mmap requirement on the main app.
Implement write callbacks to remove the big buffer requirement on the main app.
Implement new function to send files in chunks using a read callback.
Restore the WSAEWOULDBLOCK checking on windows.
Use SOCKET and INVALID_SOCKET on Windows.
Fix compilation warnings on Windows.
Fix for cancelling usb transfers. Also make sure to crear the endpoint after receiving a cancel event.
Removed casting in some function arguments.
Expose some constants so the cancel event can be done by the app calling the library.