Reading Data with a ServerSocket
ServerSocket objects use their accept() method to connect to a client.
public Socket accept() throws IOException
There are no getInputStream() or getOutputStream() methods for ServerSocket.
accept() returns a Socket object, and its getInputStream() and getOutputStream() methods provide streams.
Back to first slide
View graphic version