A -3642 error indicates that the library you are using is too old to connect to the lan daemon you are using.
Upgrade to newer library.
Error Codes