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 portIOExceptionCopyright © 2015. All rights reserved.