org.mockftpserver.core.socket
Interface SocketFactory
- All Known Implementing Classes:
- DefaultSocketFactory
public interface SocketFactory
Interface for factory that create new Socket instances.
Using this abstraction enables unit testing.
- Version:
- $Revision: 8 $ - $Date: 2007-12-18 22:42:32 -0500 (Tue, 18 Dec 2007) $
- Author:
- Chris Mair
createSocket
Socket createSocket(InetAddress host,
int port)
throws IOException
- Create a new Socket instance for the specified host and port.
- Parameters:
host - - the IP address of the host endpoint to which the socket is connectport - - the port number of the enpoint to which the socket is connected
- Returns:
- a new Socket
- Throws:
IOException
Copyright © 2014. All rights reserved.