public class ClientWebsocket extends Object
| Constructor and Description |
|---|
ClientWebsocket(InetAddress remoteAddress,
int remotePort,
SSLConfiguration sslConfiguration)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
|
void |
connect(int timeout)
|
InetAddress |
getBindAddress() |
int |
getBindPort() |
Socket |
getSocket()
Get the instance of connected socket.
|
void |
setBindAddress(InetAddress bindAddress) |
void |
setBindPort(int bindPort) |
public ClientWebsocket(InetAddress remoteAddress, int remotePort, SSLConfiguration sslConfiguration)
remoteAddress - Remote server address where this sslClientSocket will connect to.remotePort - Remote server port where this sslClientSocket will connect to.sslConfiguration - Contains all the sll certificate related information required to bind the socket
sslClientSocket. If user isn't concern about security of SSL Socket this value
can be set to null.public InetAddress getBindAddress()
public void setBindAddress(InetAddress bindAddress)
public int getBindPort()
public void setBindPort(int bindPort)
public Socket getSocket()
Copyright © 2023. All rights reserved.