Well I figured that I would spend my time today spoofing around with a test client/server.
Say that I boot up my server:
1 2
| "Server listening on port: 4444." "Waiting for connections..." |
I'd like it to tell me when a client connects to it, than list some of the details (IP, TimeStamp of connection).
Example:
1 2 3
| "Server listening on port: 4444." "Waiting for connections..." "Client connected: Gabriel-HP/192.168.1.1 DATE_FORMAT_HERE." |
My question is:
What methods can I use/classes to get my Server to tell me when a Client connects, and list some details of the connection (see above).
Now I've messed around in eclipse a little bet, (seeing all classes/methods), I know that I can grab my own info/connection info.
Hope I can get some help on this, thanks guys
