Do a search for code that uses Sockets.
When a method that is receiving input over a socket gets data, it could call another method and pass it the input it received.
Type: Posts; User: Norm
Do a search for code that uses Sockets.
When a method that is receiving input over a socket gets data, it could call another method and pass it the input it received.
When the Socket connects you can get I/O streams from the socket object and read from that. Look at the API doc for the methods to get the streams.
Is the program to work as a server or as a client?
You can use more than one ServerSocket or Socket statement in your program.