Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Lua ➜ IPC between MUSHClient and C# application over sockets?

IPC between MUSHClient and C# application over sockets?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zolomon   (8 posts)  Bio
Date Fri 13 Apr 2012 11:37 AM (UTC)

Amended on Fri 13 Apr 2012 01:32 PM (UTC) by Zolomon

Message
Hi!

I'm working on a fun little project where I have connected an Xbox360 Kinect to my computer and can use its SDK for speech recognition.

I have this working perfectly - however, I don't know how I can write a EDIT: socket listening loop in Lua that can sit non-blockingly and wait for commands from my C# application.

I am not sure if this is the best approach.

The flow I'm trying to achieve is something like this:

1. Say a command out loud and recognize it
2. Send command to MUSHClient
3. Retrieve command on MUSHClient's side
4. Parse command
5. Execute command/associated script

I have managed to write a connect & disconnect script but I can't solve the non-blocking loop part.

Any suggestions?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 15 Apr 2012 12:17 AM (UTC)
Message
I think LuaSocket has a listen feature, where you can check for input without blocking, not sure if that will work in your case.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Zolomon   (8 posts)  Bio
Date Reply #2 on Sun 08 Jul 2012 05:18 PM (UTC)
Message
I realized that I don't need to create a socket - I can just create a new world that can connect to my server and work as proxy for my main world.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,638 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.