Altera_Forum
Honored Contributor
16 years agoMultiple socket server
Hi everyone!
I a Nios newbie, so I'm sorry if I'm asking any FAQ, but I can't find any information on the subject. I want to build a multiport socket server For example, imagine server which allows 3 connections: - port 23 which is a simple telnet terminal - port 6 which echoes back everything - port 1024 which bridges data to and from a serial port I started with the simple_server_socket template. Everything works fine as long as I listen only one of the above ports. If more than a port is listening, only the one whose task has higher priority will work; the others seems to connect but no data is transferred; then after a while a get a stream of "No free buffers for rx " error messages from the jtag debug port. Another issue I have is on connection closing. If the server closes it, there no problem and my client can reconnect. If the client closes the connection, the server doesn't recognize it and remain in a connected state. If I try to reconnect I get the same behaviour and errors as described above with a multiple connection. Thank you for any help Regards