nl.tbdev.IR
Class ConnectionCallback
java.lang.Object
|
+--nl.tbdev.IR.ConnectionCallback
- All Implemented Interfaces:
- ConnectionCallbackInterface
- Direct Known Subclasses:
- Client, IasClient, IasServer, TempClient
- public abstract class ConnectionCallback
- extends java.lang.Object
- implements ConnectionCallbackInterface
This abstract class defines a default implementation for the calls that
occur from the IrDA layers to the user application. To create anything
usefull at least connectionCallbackData(byte[]) needs to be implemented.
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
connection
protected IrConnection connection
ConnectionCallback
public ConnectionCallback()
connectionCallbackConnect
public void connectionCallbackConnect(byte[] data)
- called whenever a connection request for this service is received.
Default implementation does not accept connections
- Specified by:
connectionCallbackConnect in interface ConnectionCallbackInterface
connectionCallbackConfirm
public void connectionCallbackConfirm(byte[] data)
- called whenever a connection request succeeds
Default implementation does nothing.
- Specified by:
connectionCallbackConfirm in interface ConnectionCallbackInterface
connectionCallbackLink
public void connectionCallbackLink()
- called whenever a link connection is established
Default implementation does nothing.
- Specified by:
connectionCallbackLink in interface ConnectionCallbackInterface
connectionCallbackData
public void connectionCallbackData(byte[] data)
- called whenever data is received for this service.
Default implementation does nothing.
- Specified by:
connectionCallbackData in interface ConnectionCallbackInterface
- Parameters:
data - contains the application level data, no IrDA frame headers.
connectionCallbackDisconnect
public void connectionCallbackDisconnect()
- called on all LAP disconnects
- Specified by:
connectionCallbackDisconnect in interface ConnectionCallbackInterface
setConnection
public void setConnection(IrConnection c)
- called to set the asociated IrConnection information for this client
- Specified by:
setConnection in interface ConnectionCallbackInterface
- Parameters:
c - IrConnection reference