org.mockftpserver.core.socket
Class DefaultSocketFactory
java.lang.Object
org.mockftpserver.core.socket.DefaultSocketFactory
- All Implemented Interfaces:
- SocketFactory
public class DefaultSocketFactory
- extends Object
- implements SocketFactory
Default implementation of the SocketFactory; creates standard Socket instances.
- Version:
- $Revision: 8 $ - $Date: 2007-12-18 22:42:32 -0500 (Tue, 18 Dec 2007) $
- Author:
- Chris Mair
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSocketFactory
public DefaultSocketFactory()
createSocket
public Socket createSocket(InetAddress host,
int port)
throws IOException
- Create a new Socket instance for the specified host and port.
- Specified by:
createSocket in interface SocketFactory
- 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- See Also:
SocketFactory.createSocket(java.net.InetAddress, int)
Copyright © 2014. All rights reserved.