|
IPC between MUSHClient and C# application over sockets?
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Zolomon
(7 posts) bio
|
| Date |
Fri 13 Apr 2012 11:37 AM (UTC) [ quote
] 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 (18,800 posts) bio
Forum Administrator |
| Date |
Reply #1 on Sun 15 Apr 2012 12:17 AM (UTC) [ quote
] |
| 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
(7 posts) bio
|
| Date |
Reply #2 on Sun 08 Jul 2012 05:18 PM (UTC) [ quote
] |
| 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.
1,127 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )