public class AndroidNetworkLayer extends SslNetworkLayer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IN6_ADDR_ANY
A string containing the "any" local address for IPv6.
|
Constructor and Description |
---|
AndroidNetworkLayer() |
Modifier and Type | Method and Description |
---|---|
java.net.DatagramSocket |
createDatagramSocket(int port,
java.net.InetAddress laddr)
Creates a datagram socket, bound to the specified local address.
|
java.net.ServerSocket |
createServerSocket(int port,
int backlog,
java.net.InetAddress bindAddress)
Creates a server with the specified port, listen backlog, and local IP
address to bind to.
|
javax.net.ssl.SSLServerSocket |
createSSLServerSocket(int port,
int backlog,
java.net.InetAddress bindAddress)
Creates an SSL server with the specified port, listen backlog, and local
IP address to bind to.
|
createDatagramSocket, createSocket, createSocket, createSocket, createSSLSocket, createSSLSocket, getSSLServerSocketFactory, setSipStack, setTrafficClass, setTrafficClass
public static final java.lang.String IN6_ADDR_ANY
public java.net.ServerSocket createServerSocket(int port, int backlog, java.net.InetAddress bindAddress) throws java.io.IOException
createServerSocket
in interface gov.nist.core.net.NetworkLayer
createServerSocket
in class SslNetworkLayer
port
- the portbacklog
- backlogbindAddress
- local address to usejava.io.IOException
- problem creating socket.public java.net.DatagramSocket createDatagramSocket(int port, java.net.InetAddress laddr) throws java.net.SocketException
createDatagramSocket
in interface gov.nist.core.net.NetworkLayer
createDatagramSocket
in class SslNetworkLayer
port
- local port to useladdr
- local address to bindjava.net.SocketException
- problem creating socket.public javax.net.ssl.SSLServerSocket createSSLServerSocket(int port, int backlog, java.net.InetAddress bindAddress) throws java.io.IOException
createSSLServerSocket
in interface gov.nist.core.net.NetworkLayer
createSSLServerSocket
in class SslNetworkLayer
port
- the port to listen tobacklog
- backlogbindAddress
- the address to listen tojava.io.IOException
- problem creating socket.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.