public class DefaultSocketFactory extends java.lang.Object implements SocketFactory
Constructor and Description |
---|
DefaultSocketFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close(java.net.DatagramSocket sock) |
void |
close(java.net.ServerSocket sock) |
void |
close(java.net.Socket sock) |
java.net.DatagramSocket |
createDatagramSocket(java.lang.String service_name) |
java.net.DatagramSocket |
createDatagramSocket(java.lang.String service_name,
int port) |
java.net.DatagramSocket |
createDatagramSocket(java.lang.String service_name,
int port,
java.net.InetAddress laddr) |
java.net.DatagramSocket |
createDatagramSocket(java.lang.String service_name,
java.net.SocketAddress bindaddr) |
java.net.MulticastSocket |
createMulticastSocket(java.lang.String service_name) |
java.net.MulticastSocket |
createMulticastSocket(java.lang.String service_name,
int port) |
java.net.MulticastSocket |
createMulticastSocket(java.lang.String service_name,
java.net.SocketAddress bindaddr) |
java.net.ServerSocket |
createServerSocket(java.lang.String service_name) |
java.net.ServerSocket |
createServerSocket(java.lang.String service_name,
int port) |
java.net.ServerSocket |
createServerSocket(java.lang.String service_name,
int port,
int backlog) |
java.net.ServerSocket |
createServerSocket(java.lang.String service_name,
int port,
int backlog,
java.net.InetAddress bindAddr) |
java.net.Socket |
createSocket(java.lang.String service_name) |
java.net.Socket |
createSocket(java.lang.String service_name,
java.net.InetAddress address,
int port) |
java.net.Socket |
createSocket(java.lang.String service_name,
java.net.InetAddress address,
int port,
java.net.InetAddress localAddr,
int localPort) |
java.net.Socket |
createSocket(java.lang.String service_name,
java.lang.String host,
int port) |
java.net.Socket |
createSocket(java.lang.String service_name,
java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort) |
java.util.Map<java.lang.Object,java.lang.String> |
getSockets()
Returns all open sockets.
|
public java.net.Socket createSocket(java.lang.String service_name) throws java.io.IOException
createSocket
in interface SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.lang.String service_name, java.lang.String host, int port) throws java.io.IOException
createSocket
in interface SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.lang.String service_name, java.net.InetAddress address, int port) throws java.io.IOException
createSocket
in interface SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.lang.String service_name, java.lang.String host, int port, java.net.InetAddress localAddr, int localPort) throws java.io.IOException
createSocket
in interface SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.lang.String service_name, java.net.InetAddress address, int port, java.net.InetAddress localAddr, int localPort) throws java.io.IOException
createSocket
in interface SocketFactory
java.io.IOException
public java.net.ServerSocket createServerSocket(java.lang.String service_name) throws java.io.IOException
createServerSocket
in interface SocketFactory
java.io.IOException
public java.net.ServerSocket createServerSocket(java.lang.String service_name, int port) throws java.io.IOException
createServerSocket
in interface SocketFactory
java.io.IOException
public java.net.ServerSocket createServerSocket(java.lang.String service_name, int port, int backlog) throws java.io.IOException
createServerSocket
in interface SocketFactory
java.io.IOException
public java.net.ServerSocket createServerSocket(java.lang.String service_name, int port, int backlog, java.net.InetAddress bindAddr) throws java.io.IOException
createServerSocket
in interface SocketFactory
java.io.IOException
public java.net.DatagramSocket createDatagramSocket(java.lang.String service_name) throws java.net.SocketException
createDatagramSocket
in interface SocketFactory
java.net.SocketException
public java.net.DatagramSocket createDatagramSocket(java.lang.String service_name, java.net.SocketAddress bindaddr) throws java.net.SocketException
createDatagramSocket
in interface SocketFactory
java.net.SocketException
public java.net.DatagramSocket createDatagramSocket(java.lang.String service_name, int port) throws java.net.SocketException
createDatagramSocket
in interface SocketFactory
java.net.SocketException
public java.net.DatagramSocket createDatagramSocket(java.lang.String service_name, int port, java.net.InetAddress laddr) throws java.net.SocketException
createDatagramSocket
in interface SocketFactory
java.net.SocketException
public java.net.MulticastSocket createMulticastSocket(java.lang.String service_name) throws java.io.IOException
createMulticastSocket
in interface SocketFactory
java.io.IOException
public java.net.MulticastSocket createMulticastSocket(java.lang.String service_name, int port) throws java.io.IOException
createMulticastSocket
in interface SocketFactory
java.io.IOException
public java.net.MulticastSocket createMulticastSocket(java.lang.String service_name, java.net.SocketAddress bindaddr) throws java.io.IOException
createMulticastSocket
in interface SocketFactory
java.io.IOException
public void close(java.net.Socket sock) throws java.io.IOException
close
in interface SocketFactory
java.io.IOException
public void close(java.net.ServerSocket sock) throws java.io.IOException
close
in interface SocketFactory
java.io.IOException
public void close(java.net.DatagramSocket sock)
close
in interface SocketFactory
public java.util.Map<java.lang.Object,java.lang.String> getSockets()
SocketFactory
getSockets
in interface SocketFactory
Copyright © 1998-2020 Red Hat. All Rights Reserved.