public interface SocketFactory
createServerSocket(String, int, int)
is the same as ServerSocket.ServerSocket(int, int)
.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.
|
java.net.Socket createSocket(java.lang.String service_name) throws java.io.IOException
java.io.IOException
java.net.Socket createSocket(java.lang.String service_name, java.lang.String host, int port) throws java.io.IOException
java.io.IOException
java.net.Socket createSocket(java.lang.String service_name, java.net.InetAddress address, int port) throws java.io.IOException
java.io.IOException
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
java.io.IOException
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
java.io.IOException
java.net.ServerSocket createServerSocket(java.lang.String service_name) throws java.io.IOException
java.io.IOException
java.net.ServerSocket createServerSocket(java.lang.String service_name, int port) throws java.io.IOException
java.io.IOException
java.net.ServerSocket createServerSocket(java.lang.String service_name, int port, int backlog) throws java.io.IOException
java.io.IOException
java.net.ServerSocket createServerSocket(java.lang.String service_name, int port, int backlog, java.net.InetAddress bindAddr) throws java.io.IOException
java.io.IOException
java.net.DatagramSocket createDatagramSocket(java.lang.String service_name) throws java.net.SocketException
java.net.SocketException
java.net.DatagramSocket createDatagramSocket(java.lang.String service_name, java.net.SocketAddress bindaddr) throws java.net.SocketException
java.net.SocketException
java.net.DatagramSocket createDatagramSocket(java.lang.String service_name, int port) throws java.net.SocketException
java.net.SocketException
java.net.DatagramSocket createDatagramSocket(java.lang.String service_name, int port, java.net.InetAddress laddr) throws java.net.SocketException
java.net.SocketException
java.net.MulticastSocket createMulticastSocket(java.lang.String service_name) throws java.io.IOException
java.io.IOException
java.net.MulticastSocket createMulticastSocket(java.lang.String service_name, int port) throws java.io.IOException
java.io.IOException
java.net.MulticastSocket createMulticastSocket(java.lang.String service_name, java.net.SocketAddress bindaddr) throws java.io.IOException
java.io.IOException
void close(java.net.Socket sock) throws java.io.IOException
java.io.IOException
void close(java.net.ServerSocket sock) throws java.io.IOException
java.io.IOException
void close(java.net.DatagramSocket sock)
java.util.Map<java.lang.Object,java.lang.String> getSockets()
Copyright © 1998-2020 Red Hat. All Rights Reserved.