Hi,
I'm almost finished with my Java socket wrapper around the new VMCI library. I have done some tests and the first thing that strikes me is that its not thread safe (The legacy VMCI library is). After creating-sending-closing a couple of sessions between the host and a VM the client on the VM crashes hard (Entire JVM) with EXCEPTION_ACCESS_VIOLATION (This happens when calling the sendto function and the host is waiting in recvfrom at the same time). I don't think the error is in my JNI code but somewhere in your library.
I will try to recreate the error in C - I'll post an example if I succeed.
Kind Regards
Andreas
Yes, VMCI sockets should be thread safe.
> I will try to recreate the error in C - I'll post an example if I succeed.
Great, if you find something I am interested in taking a look.
One other question ... you mentioned "Legacy VMCI-sockets". I just wanted to clarify ... what platform are your running on (I assumed WS 6.5 from your previous posts).
Yes, I'm running my current tests on WS 6.5 but I have an implementation (Legacy VMCI) working on WS 6.0 that has been in use for about a year now.
Kind Regards
Andreas
I'm sorry, I had a typo in the JNI-code. I have now fixed it and it's working great.
Kind Regards
Andreas