I
I'm wondering if it is sensible to write a Modbus/TCP server as an inetd child process. In many ways this simplifies the server, because it has to deal only with one client at a time and all I/O is piped through stdin and stdout (no sockets programming).
<b>But</b> - I wonder if many Modbus clients open and close a connection each time they make a request. With inetd there is something of a performance penalty when a new connection is opened, because inetd has to fork a new instance of the server process each time.
A Google search for "Modbus inetd" returns nothing that seems relevant.
Does anyone have any relevant experience they can offer?
<b>But</b> - I wonder if many Modbus clients open and close a connection each time they make a request. With inetd there is something of a performance penalty when a new connection is opened, because inetd has to fork a new instance of the server process each time.
A Google search for "Modbus inetd" returns nothing that seems relevant.
Does anyone have any relevant experience they can offer?