My current project consists of a need to have bi-directional communication between a server and a handful of clients running embedding ruby in sketchup. The idea is to be able to share model information in real-time between multiple sketchup sessions on multiple computers. The data will be simple but often. I'm looking for multi-player computer-game-like performance. The communication would be happening while the user is working in the sketchup file so it is critical to keep the performance hit to the model environment to a minimum.
I've been directed to Daniel Berger's Win Utilities as a possible solution. Would like to know if anyone here can support that or offer other options.
Other options I've considered:
1. Write an extension network library with C++
2. Use a pre-made network library. Would you recommend any?
3. Sketchup has an undocumented SKsocket class built in which has some limited sockets functionality. However, I hear that's pretty unreliable and unstable.
4. Finally, full ruby has a socket.so that looked promising but I can't seem to load/require it in sketchup without getting a error "127: The specified procedure could not be found."
5. Give up and keep my day job.
Any guidance to how you would approach the project would be much appreciated.
Thanks,
Mike Talbott
|