I have two sockets, which are running on my Linux board under localhost IPv6 (::1). I programmed the .so in C.
If each socket is running in a separate loop and both sockets call the send() or the recv() socket function at the same time, will my program freeze because that is what is happening.
I specified my sockets as non-blocking, but it still freezes.
I tried running my code in one loop i.e. server send, client recv, client send, server recv, and that works. It only does not work if I run my code in parallel loops.
Does anyone know why this might happen?
Thanks.