Thanks for that answer. I guess I have to take a different tack then.
Hmm.
I haven't played around with the c++ api yet. Maybe I should write my own little udp client there?
Has anyone worked with the c++ api? Will I run into any problems that way?
sent from my android.
On Dec 29, 2010 10:38 AM, "morgan_greywolf" <rob....@gmail.com> wrote:On Dec 21, 8:16 pm, Lindsey Mysse <lindsey.my...@gmail.com> wrote: > I am trying to require 'socket'...
Hi, Lindsey! SketchUp ships with an embedded Ruby interpreter.
Normally, you can use functionality from the Ruby library by copying
the necessary .rb files into the Plugins folder, or into a
subdirectory off the Plugins folder. However, socket is a native C/C+
+ library, not Ruby. I'm not 100% sure, but there might be no way to
do it. If it <em>were</em> possible, you would have to copy socket.so
from /usr/lib/ruby/[platform]/socket.so into your Plugins folder, but
I doubt this will work.
-- You received this message because you are subscribed to the Google Groups "SketchUp Ruby API" g...
http://cfcl.com/twiki/bin/view/Projects/SketchUp/WD_WoR_BrowserDialog
I'm quite certain that the proxy could be modified to use
regular sockets, instead of WebSockets.
A totally different hack which I recently encountered (but
haven't played with) is to have JavaScript client code talk
to a remote server. The plugin then talks to the client in
SU's (ab)normal fashion: execute_script, location-'foo', etc.
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume r...@cfcl.com
http://www.cfcl.com/rdm/weblog +1 650-873-7841
Software system design, development, and documentation