Martin
Martin

Reputation: 12403

Interprocess communication with Lua and C#

I have an application in Lua, I want to communicate between the Lua application and a C# program.

I know of several ways to do this in C# (sockets, OS pipes etc) but I can't find any information about these things in Lua (which is a language I'm rather unfamiliar with unfortunately).

The IPC sending and receiving must not block for longer than a few milliseconds, since the Lua script is part of a game and the game will crash if the script takes too long to execute.

Any good links to libraries/tutorials would be greatly appreciated.

Upvotes: 1

Views: 1331

Answers (1)

Reed Copsey
Reed Copsey

Reputation: 564631

The only option I've seen for this would be to use LuaSocket, and communicate via TCP or UDP.

Upvotes: 2

Related Questions