Thank you again for the useful information.
Yes the code will be used over TCP socket connection. I did look at the example for TCP/IP relay. So, if I use the example from the post
, should I use Luasocket module that in the beginning of my post you suggested to use, or the LUA module sbio_tcprelay.so included in the example is enough (it has the same functionality?)
Also when analyzing the code, I realized that for the client there is a channel that only reads handle = gre_io_open(channel_name, GRE_IO_TYPE_RDONLY);
and for the server there is a channel that only write handle = gre_io_open(channel, GRE_IO_TYPE_WRONLY);
Can I open channels for writing and reading for both client and server, for the cases when I also want to send an event from server to client?
All the best,