I have built a client/server java program that can accept multiple clients. I am able to send information to all the clients through the
writeInt() methods from
ObjectOutputStream. I however do not know how to make it so that for example only the latest client to connect to the server retrieves this information and no one else. Like for instance say I only wanted to write an output to one of the clients and not the others..Can someone provide me with good source or a nice code snippet that does something very similar to what I'm asking?