RUDP, shared libraries, etc.

klacke@REDACTED klacke@REDACTED
Tue Mar 29 21:33:55 CEST 2005


On Mon, Mar 28, 2005 at 09:27:55PM +0100, Joel Reymont wrote:


> I would like to build the user interface using the Torque Game Engine
> (www.garagegames.com) and it uses a custom main on Windows and Mac OSX
> which makes it very hard to build it into a shared library to be called
> from Erlang. What is the best way to interface with Erlang here? Can I
> make the Erlang runtime and my code into a shared library to be loaded
> into C++?
> 

It's always highly problematic to integrate two programs
that both require main() for filedescriptor polling.

Start off by keeping Erlang and Torque in separate processes
and invent some IPC mechansim between them. 
TCP sockets over loopback is fast.


/klacke

-- 
Claes Wikstrom                        -- Caps lock is nowhere and
http://www.hyber.org                  -- everything is under control          



More information about the erlang-questions mailing list