Hi,
I recently joined the website hoping I could get some help regarding a little project I'm working on.
The project is basically a server written in
Java, but it's supposed to follow a very specific synopsis.
The clients connect to the server, and they are greeted by the ServerSocket which listens on port 6060.
The ServerSocket is then supposed to spawn a new instance of a socket, and redirect each client to it's own unique socket,
thus creating a unique socket for every client that has connected to us. I then need to somehow have the socket call functions when certain things happen such as when a socket receives data from the client, or when the socket closes - should be very similar to Visual Basic's "DataArrival" method.
I have created a very basic illustration of what I'm in need of:
.. and
Any tips on how I can do this?
Thanks and sorry for the bother!