|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.nist.core.net.DefaultNetworkLayer
default implementation which passes straight through to java platform
| Field Summary | |
static DefaultNetworkLayer |
SINGLETON
single default network layer; for flexibility, it may be better not to make it a singleton, but singleton seems to make sense currently. |
| Method Summary | |
DatagramSocket |
createDatagramSocket()
Constructs a datagram socket and binds it to any available port on the local host machine. |
DatagramSocket |
createDatagramSocket(int port,
InetAddress laddr)
Creates a datagram socket, bound to the specified local address. |
ServerSocket |
createServerSocket(int port,
int backlog,
InetAddress bindAddress)
Creates a server with the specified port, listen backlog, and local IP address to bind to. |
Socket |
createSocket(InetAddress address,
int port)
Creates a stream socket and connects it to the specified port number at the specified IP address. |
Socket |
createSocket(InetAddress address,
int port,
InetAddress myAddress)
Creates a stream socket and connects it to the specified port number at the specified IP address. |
SSLServerSocket |
createSSLServerSocket(int port,
int backlog,
InetAddress bindAddress)
Creates an SSL server with the specified port, listen backlog, and local IP address to bind to. |
SSLSocket |
createSSLSocket(InetAddress address,
int port)
Creates a stream SSL socket and connects it to the specified port number at the specified IP address. |
SSLSocket |
createSSLSocket(InetAddress address,
int port,
InetAddress myAddress)
Creates a stream SSL socket and connects it to the specified port number at the specified IP address. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final DefaultNetworkLayer SINGLETON
| Method Detail |
public ServerSocket createServerSocket(int port,
int backlog,
InetAddress bindAddress)
throws IOException
NetworkLayer
createServerSocket in interface NetworkLayerport - backlog - bindAddress -
IOException
public Socket createSocket(InetAddress address,
int port)
throws IOException
NetworkLayer
createSocket in interface NetworkLayeraddress - port -
IOException
public DatagramSocket createDatagramSocket()
throws SocketException
NetworkLayer
createDatagramSocket in interface NetworkLayerSocketException
public DatagramSocket createDatagramSocket(int port,
InetAddress laddr)
throws SocketException
NetworkLayer
createDatagramSocket in interface NetworkLayerport - laddr -
SocketException
public SSLServerSocket createSSLServerSocket(int port,
int backlog,
InetAddress bindAddress)
throws IOException
NetworkLayer
createSSLServerSocket in interface NetworkLayerport - backlog - bindAddress -
IOException
public SSLSocket createSSLSocket(InetAddress address,
int port)
throws IOException
NetworkLayer
createSSLSocket in interface NetworkLayeraddress - port -
IOException
public SSLSocket createSSLSocket(InetAddress address,
int port,
InetAddress myAddress)
throws IOException
NetworkLayer
createSSLSocket in interface NetworkLayeraddress - port - myAddress - -- my address.
IOException
public Socket createSocket(InetAddress address,
int port,
InetAddress myAddress)
throws IOException
NetworkLayer
createSocket in interface NetworkLayeraddress - port - myAddress -
IOException
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||