How to keep track of children processes in erlang?
问题 I have a static list of "hosts" with their info, and a dynamic list of "host agents". Each host has one and only one agent for as long as it connects to the server by a TCP connection. As the host may or may not be connected, its agent process may or may not be started. When a TCP packet arrives with the host ID, I need to find out if the "agent" of this host is started or not. Connection is responsible for receive and send data from tcp socket, parse the data to find out which host it should