I'm embarking on an application for work. There will be an industrial PC that aquires data from serial links and will be acting as a server. The clients will be connecting over the LAN/WAN. I've been looking at the libraries provided by Basic4PPC (including Agraham's NetUDP and Remoting) and I conclude I'll have to use TCP/IP as the data will be critical and I understand TCP will guarantee it's delivery or inform you otherwise.
My stumbling points so far are:
Many Thanks,
Christopher
My stumbling points so far are:
- The Server needs to log the IP address of the Client; but there is no Property that will provide a list of connected clients. How is this handled inside the library? I would have thought the Server needs to know each one internally. I tried having the client send its IP on connection; but this is immediately open to abuse and if someone is connecting from home over VPN, it will just provide the IP of their router.
- If the connection is broken by any means; server crashes, network lead drops out, client closes etc. the other party needs to know, so the client would get a message saying 'Server unavailable' and the Server would log the disconnection and release the client resources. If there are no events able to be raised for this, I'll have to write some handshaking code so each end knows the other is still there.
- From the above; the Server once up and running will probably run for months, perhaps years at a time, so disconnected clients will have to be released so they don't build up. I've seen a response here - does that do what I require?
Many Thanks,
Christopher