public class ServerWebsocket extends Object
ServerSocket using the SSL enabled.| Constructor and Description |
|---|
ServerWebsocket(InetAddress bindAddress,
int bindPort,
SSLConfiguration sslConfiguration)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
SSLSocket |
accept()
Accept a client socket connecting to this server socket.
|
void |
bind()
|
void |
close()
Close this socket.
|
SocketAddress |
getLocalSocketAddress()
Get the instance of
SocketAddress where this socket has been bound to. |
SSLServerSocket |
getSocket()
Get the instance of
SSLServerSocket that was bound. |
public ServerWebsocket(InetAddress bindAddress, int bindPort, SSLConfiguration sslConfiguration)
bindAddress - String ip address, where this ServerWebsocket will bind on.bindPort - Integer port, where this ServerWebsocket will bind on.sslConfiguration - SSL certificate related information. See SSLConfiguration for details. If user
isn't concern about security of SSL Socket this value can be set to null.public void bind()
throws Exception
Exception - while binding the socket in given information.public SSLServerSocket getSocket()
SSLServerSocket that was bound.SSLServerSocket that was bound.public SSLSocket accept() throws IOException
IOException - while accepting the socket connection.public void close()
throws IOException
IOException - while closing the socketpublic SocketAddress getLocalSocketAddress()
SocketAddress where this socket has been bound to.SocketAddress where this socket has been bound to.Copyright © 2023. All rights reserved.