nl.tbdev.IR
Interface ConnectionCallbackInterface

All Known Implementing Classes:
ConnectionCallback

public interface ConnectionCallbackInterface

This interface defines the calls that occur from the IrDA layers to the user application.


Method Summary
 void connectionCallbackConfirm(byte[] data)
          called whenever a connection request succeeds
 void connectionCallbackConnect(byte[] data)
          called whenever a connection request for this service is received.
 void connectionCallbackData(byte[] data)
          called whenever data is received for this service.
 void connectionCallbackDisconnect()
          called on all LAP disconnects
 void connectionCallbackLink()
          called whenever a link connection is established
 void setConnection(IrConnection c)
          called to set the asociated IrConnection information for this client
 

Method Detail

connectionCallbackConnect

public void connectionCallbackConnect(byte[] data)
called whenever a connection request for this service is received. Call connection.connectConfirm() to accept a connection

connectionCallbackConfirm

public void connectionCallbackConfirm(byte[] data)
called whenever a connection request succeeds

connectionCallbackLink

public void connectionCallbackLink()
called whenever a link connection is established

connectionCallbackData

public void connectionCallbackData(byte[] data)
called whenever data is received for this service.
Parameters:
data - contains the application level data, no IrDA frame headers.

connectionCallbackDisconnect

public void connectionCallbackDisconnect()
called on all LAP disconnects

setConnection

public void setConnection(IrConnection c)
called to set the asociated IrConnection information for this client
Parameters:
c - IrConnection reference