|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.ServerSocket
COM.claymoresystems.ptls.SSLServerSocket
public class SSLServerSocket
Constructor Summary | |
---|---|
SSLServerSocket(SSLContext ctx,
int port)
Create an SSLServerSocket specifying the port and backlog |
|
SSLServerSocket(SSLContext ctx,
java.lang.Integer port,
java.lang.Integer backlog,
java.net.InetAddress inetaddr)
Create an SSLServerSocket specifying the port, backlog, and listen address. |
|
SSLServerSocket(SSLContext ctx,
int port,
int backlog)
Create an SSLServerSocket specifying the port only |
|
SSLServerSocket(SSLContext ctx,
int port,
int backlog,
java.net.InetAddress inetaddr)
Create an SSLServerSocket specifying the port, backlog, and listen address |
Method Summary | |
---|---|
java.net.Socket |
accept()
Accept a connection on this socket, and perform the SSL server handshake in the process |
static void |
main(java.lang.String[] args)
Internal test code |
Methods inherited from class java.net.ServerSocket |
---|
bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SSLServerSocket(SSLContext ctx, java.lang.Integer port, java.lang.Integer backlog, java.net.InetAddress inetaddr) throws java.io.IOException
ctx
- the SSLContext to use to create this socketport
- the port to listen onbacklog
- the number of connections to queue upinetaddr
- the address to listen on, assuming a multihomes machine. A null value listens on all interfaces
java.io.IOException
- if something goes wrong creating the socketpublic SSLServerSocket(SSLContext ctx, int port, int backlog, java.net.InetAddress inetaddr) throws java.io.IOException
ctx
- the SSLContext to use to create this socketport
- the port to listen onbacklog
- the number of connections to queue upinetaddr
- the address to listen on, assuming a multihomes machine. A null value listens on all interfaces
java.io.IOException
- if something goes wrong creating the socketpublic SSLServerSocket(SSLContext ctx, int port) throws java.io.IOException
ctx
- the SSLContext to use to create this socketport
- the port to listen on
java.io.IOException
- if something goes wrong creating the socketpublic SSLServerSocket(SSLContext ctx, int port, int backlog) throws java.io.IOException
ctx
- the SSLContext to use to create this socketport
- the port to listen onbacklog
- the number of connections to queue up
java.io.IOException
- if something goes wrong creating the socketMethod Detail |
---|
public java.net.Socket accept() throws java.io.IOException
accept
in class java.net.ServerSocket
java.io.IOException
- if an error occurs either during the accept or the handshakepublic static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |