de.tu_darmstadt.sp
Class SocketFactoryImpl
java.lang.Object
|
+--javax.net.SocketFactory
|
+--de.tu_darmstadt.sp.SocketFactoryImpl
- public class SocketFactoryImpl
- extends SocketFactory
Class SocketFactory is the 'trivial' implementation for provides Sun's interface,
creating common sockets, created by the Socket
constructors.
- Version:
- $Revision: 1.2 $
- Author:
- Andrei Popovici
Method Summary |
java.net.Socket |
createSocket(java.net.InetAddress host,
int port)
Returns a socket connected to a ServerSocket on the named host,
at the given port. |
java.net.Socket |
createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress clientAddress,
int clientPort)
Returns a socket connected to a ServerSocket on the named host,
at the given port. |
java.net.Socket |
createSocket(java.lang.String host,
int port)
Returns a socket connected to a ServerSocket at the specified
network address and port. |
java.net.Socket |
createSocket(java.lang.String host,
int port,
java.net.InetAddress clientHost,
int clientPort)
Returns a socket connected to a ServerSocket at the specified
network address and port. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SocketFactoryImpl
public SocketFactoryImpl()
createSocket
public java.net.Socket createSocket(java.lang.String host,
int port)
throws java.io.IOException,
java.net.UnknownHostException
- Returns a socket connected to a ServerSocket at the specified
network address and port.
- Overrides:
- createSocket in class SocketFactory
createSocket
public java.net.Socket createSocket(java.lang.String host,
int port,
java.net.InetAddress clientHost,
int clientPort)
throws java.io.IOException,
java.net.UnknownHostException
- Returns a socket connected to a ServerSocket at the specified
network address and port.
- Overrides:
- createSocket in class SocketFactory
createSocket
public java.net.Socket createSocket(java.net.InetAddress host,
int port)
throws java.io.IOException
- Returns a socket connected to a ServerSocket on the named host,
at the given port.
- Overrides:
- createSocket in class SocketFactory
createSocket
public java.net.Socket createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress clientAddress,
int clientPort)
throws java.io.IOException
- Returns a socket connected to a ServerSocket on the named host,
at the given port.
- Overrides:
- createSocket in class SocketFactory