[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  IPC between MUSHClient and C# application over sockets?

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

IPC between MUSHClient and C# application over sockets?

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Zolomon   (7 posts)  [Biography] 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?
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] 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
[Go to top] top

Posted by Zolomon   (7 posts)  [Biography] 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.
[Go to top] 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,087 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]