public interface ServerSocketFactory
ServerSocket instances.
Using this abstraction enables unit testing.| Modifier and Type | Method and Description |
|---|---|
ServerSocket |
createServerSocket(int port)
Create a new ServerSocket for the specified port
|
ServerSocket createServerSocket(int port) throws IOException
port - - the portIOException - - if an error occursCopyright © 2016. All rights reserved.