com.sun.media.jsdt.impl
Interface JSDTSocketFactory
- public abstract interface JSDTSocketFactory
JSDT socket factory interface. This interface needs to be implemented by
any class wishing to provide a socket implementation.
- Version:
- 1.5 - 4th February 1999
- Author:
- Rich Burridge
Method Summary |
java.net.ServerSocket |
createServerSocket(int port)
createServerSocket returns a server socket which uses all network
interfaces on the host, and is bound to the specified port. |
java.net.Socket |
createSocket(java.lang.String address,
int port)
createSocket returns a socket connected to a ServerSocket on
the named host, at the given port. |
createSocket
public java.net.Socket createSocket(java.lang.String address,
int port)
throws java.io.IOException,
java.net.UnknownHostException
-
createSocket returns a socket connected to a ServerSocket on
the named host, at the given port. This socket is configured using
the socket options established for this factory.
- Parameters:
host
- the server hostport
- the server port- Throws:
- java.io.IOException - if the connection can't be established
- java.net.UnknownHostException - if the host is not known
createServerSocket
public java.net.ServerSocket createServerSocket(int port)
throws java.io.IOException
-
createServerSocket returns a server socket which uses all network
interfaces on the host, and is bound to the specified port.
- Parameters:
port
- the port to listen to- Throws:
- java.io.IOException - for networking errors