Hi,
Two questions:
1) I have created a redis module and would like to connect to a 3rd party server on a TCP port using a different (ascii) protocol. I can certainly do it by opening a raw tcp connection using linux socket family calls. However, Is there a way to do so and deliver its control to the redis event loop to take advantage of the features like monitor command? 2) Is there any way to use a lua script in the module? For example - when I get the ascii message in #1, I would like to do pre/post message processing before/after I sent/get the message from/in the module.
Thanks
Comment From: oranagra
i think the recently added RedisModule_EventLoopAdd add your FD to the event loop, so that you don't need to add a separate thread for that.
but it won't get integrated with monitor.
i'm not sure what you mean by the second question, do you want to run some EVAL code with RM_Call (which i guess you can), or just want basic lua scripting capabilities?
Comment From: nsharmanahellc
Thank you @oranagra for the reply. I understood the first answer and it helped. My second question was to run some EVAL code. So Ok, I am fine here and thank you again for your help.