When using the ServerSocket object and receiving the NewSocket object in NewConnection, I need a dynamically increasing or decreasing list to manage these clients. How can I achieve this?
In addition, how to get the remote IP and port of this client?