| Constructor and Description |
|---|
ConnectorSocket(java.lang.String host,
int port)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the socket connection.
|
java.io.InputStream |
getInputStream()
Retrieves the socket input stream.
|
java.io.OutputStream |
getOutputStream()
Retrieves the socket output stream.
|
javax.microedition.io.SocketConnection |
getSocketConnection()
Returns the socketCon connection.
|
boolean |
isClosed()
Returns
true if the socket is closed. |
public ConnectorSocket(java.lang.String host,
int port)
host - Socket destination host.port - Socket destination port.public void close()
throws java.lang.Exception
ISocketpublic java.io.InputStream getInputStream()
throws java.lang.Exception
ISocketgetInputStream in interface ISocketjava.lang.Exception - if any error occurs while getting the
InputStream of the socket.public java.io.OutputStream getOutputStream()
throws java.lang.Exception
ISocketgetOutputStream in interface ISocketjava.lang.Exception - if any error occurs while getting the
OutputStream of the socket.public javax.microedition.io.SocketConnection getSocketConnection()
© Copyright 2014 Etherios, Inc. All rights reserved. Etherios, Inc. is a Division of Digi International Inc.