Class MCPLoopbackSocketTransport.Connection
java.lang.Object
com.codename1.io.SocketConnection
com.codename1.mcp.MCPLoopbackSocketTransport.Connection
- Enclosing class:
MCPLoopbackSocketTransport
The per-connection callback the socket API instantiates. Public with a no-argument
constructor because
Socket.listenLoopback(int, Class) creates it reflectively.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionError(int errorCode, String message) Invoked in case of an error in the socket connection, this method is invoked off the EDTvoidInvoked when a socket connection is established, this method is invoked off the EDTMethods inherited from class SocketConnection
getConnectTimeout, isConnected, setConnectTimeout
-
Constructor Details
-
Connection
public Connection()
-
-
Method Details
-
connectionError
Description copied from class:SocketConnectionInvoked in case of an error in the socket connection, this method is invoked off the EDT
Parameters
-
errorCode: the error code -
message: error message if applicable
- Specified by:
connectionErrorin classSocketConnection
-
-
connectionEstablished
Description copied from class:SocketConnectionInvoked when a socket connection is established, this method is invoked off the EDT
Parameters
-
is: input stream for the socket -
os: output stream for the socket
- Specified by:
connectionEstablishedin classSocketConnection
-
-