|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.sip.net.SslNetworkLayer
public class SslNetworkLayer
Manages jain-sip socket creation. When dealing with ssl sockets we interact with the user when the certificate for some reason is not trusted.
| Constructor Summary | |
|---|---|
SslNetworkLayer()
Creates the network layer. |
|
| 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. |
Socket |
createSocket(InetAddress address,
int port,
InetAddress myAddress,
int myPort)
Creates a new Socket, binds it to myAddress:myPort and connects it to address:port. |
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. |
protected SSLServerSocketFactory |
getSSLServerSocketFactory()
Creates a ssl server socket factory. |
protected void |
setTrafficClass(DatagramSocket s)
Sets the traffic class for the DatagramSocket. |
protected void |
setTrafficClass(Socket s)
Sets the traffic class for the Socket. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SslNetworkLayer()
| Method Detail |
|---|
public ServerSocket createServerSocket(int port,
int backlog,
InetAddress bindAddress)
throws IOException
createServerSocket in interface gov.nist.core.net.NetworkLayerport - the portbacklog - backlogbindAddress - local address to use
IOException - problem creating socket.
public Socket createSocket(InetAddress address,
int port)
throws IOException
createSocket in interface gov.nist.core.net.NetworkLayeraddress - the address to connect.port - the port to connect.
IOException - problem creating socket.
public DatagramSocket createDatagramSocket()
throws SocketException
createDatagramSocket in interface gov.nist.core.net.NetworkLayerSocketException - problem creating socket.
public DatagramSocket createDatagramSocket(int port,
InetAddress laddr)
throws SocketException
createDatagramSocket in interface gov.nist.core.net.NetworkLayerport - local port to useladdr - local address to bind
SocketException - problem creating socket.
public SSLServerSocket createSSLServerSocket(int port,
int backlog,
InetAddress bindAddress)
throws IOException
createSSLServerSocket in interface gov.nist.core.net.NetworkLayerport - the port to listen tobacklog - backlogbindAddress - the address to listen to
IOException - problem creating socket.
protected SSLServerSocketFactory getSSLServerSocketFactory()
throws IOException
IOException - problem creating factory.
public SSLSocket createSSLSocket(InetAddress address,
int port)
throws IOException
createSSLSocket in interface gov.nist.core.net.NetworkLayeraddress - the address we are connecting to.port - the port we use.
IOException - problem creating socket.
public SSLSocket createSSLSocket(InetAddress address,
int port,
InetAddress myAddress)
throws IOException
createSSLSocket in interface gov.nist.core.net.NetworkLayeraddress - the address we are connecting to.port - the port we use.myAddress - the local address to use
IOException - problem creating socket.
public Socket createSocket(InetAddress address,
int port,
InetAddress myAddress)
throws IOException
createSocket in interface gov.nist.core.net.NetworkLayeraddress - the address to connect to.port - the port we use.myAddress - the local address to use.
IOException - problem creating socket.
public Socket createSocket(InetAddress address,
int port,
InetAddress myAddress,
int myPort)
throws IOException
createSocket in interface gov.nist.core.net.NetworkLayeraddress - the InetAddress that we'd like to connect to.port - the port that we'd like to connect tomyAddress - the address that we are supposed to bind on or null for
the "any" address.myPort - the port that we are supposed to bind on or 0 for a random
one.
IOException - if binding or connecting the socket fail for a reason
(exception relayed from the corresponding Socket methods)protected void setTrafficClass(Socket s)
s - Socketprotected void setTrafficClass(DatagramSocket s)
s - DatagramSocket
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||