开发者

Interprocess communication with Lua and C#

开发者 https://www.devze.com 2022-12-19 21:03 出处:网络
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 abo

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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号