Hi,
I'm experimenting with the new VMCI-socket library at the moment and thought I should share some of the issues I have stumbled upon.
1. You can't use the new library with VMs that are created using VMware Workstation older than version 6.0.
2. There is a typo in the documentation that results in that you can't call the getsockname() function on a VM (it works on the host though) if you are following the datagram instructions.
Since VMware doesn't provide an example application for testing I coded a proof of concept implementation (Only datagram at the moment) that you can use as a base in your own tests.
Kind Regards
Andreas
Message was edited by: Andreas Johansson - updated the VmciSocketExample to v0.0.2 (It's now possible to provide servers listening port)
I'm experimenting with the new VMCI-socket library at the moment and thought I should share some of the issues I have stumbled upon.
1. You can't use the new library with VMs that are created using VMware Workstation older than version 6.0.
- Issue: VMCI is grayed out in the GUI. (The new pciBridge isn't available in earlier versions)
- Solution: Upgrade the VM to at least version 6.0 (VM -> Upgrade or change version... - when the VM is powered off)
2. There is a typo in the documentation that results in that you can't call the getsockname() function on a VM (it works on the host though) if you are following the datagram instructions.
- Issue: In the stream section of the documentation the "my_addr_size" variable is initialized with "sizeof my_addr", but in the datagram section this is left out.
- Solution: Add the same assignment (but to the "svm_size" variable) in the datagram section before calling the getsockname() function.
Since VMware doesn't provide an example application for testing I coded a proof of concept implementation (Only datagram at the moment) that you can use as a base in your own tests.
Kind Regards
Andreas
Message was edited by: Andreas Johansson - updated the VmciSocketExample to v0.0.2 (It's now possible to provide servers listening port)
Attachments:
- VmciSocketExample.exe (23.5 K)
- VmciSocketExample.c (7.3 K)