public class WebSocketSecureNetworkModule extends SSLNetworkModule
socket| Constructor and Description |
|---|
WebSocketSecureNetworkModule(SSLSocketFactory factory,
String uri,
String host,
int port,
String clientId) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
String |
getServerURI() |
void |
start()
Starts the module, by creating a TCP socket to the server.
|
void |
stop()
Stops the module, by closing the TCP socket.
|
getEnabledCiphers, setEnabledCiphers, setSSLhandshakeTimeoutsetConnectTimeoutpublic WebSocketSecureNetworkModule(SSLSocketFactory factory, String uri, String host, int port, String clientId)
public void start()
throws IOException,
MqttException
TCPNetworkModulestart in interface NetworkModulestart in class SSLNetworkModuleIOExceptionMqttExceptionpublic InputStream getInputStream() throws IOException
getInputStream in interface NetworkModulegetInputStream in class TCPNetworkModuleIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface NetworkModulegetOutputStream in class TCPNetworkModuleIOExceptionpublic void stop()
throws IOException
TCPNetworkModulestop in interface NetworkModulestop in class TCPNetworkModuleIOExceptionpublic String getServerURI()
getServerURI in interface NetworkModulegetServerURI in class SSLNetworkModuleCopyright © 2018 Eclipse Paho. All Rights Reserved.