Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.synchrona.jred
Class Test  view Test download Test.java

java.lang.Object
  extended bycom.synchrona.jred.Test
All Implemented Interfaces:
com.synchrona.jred.irlap.iIrLAPListener, java.lang.Runnable

public class Test
extends java.lang.Object
implements java.lang.Runnable, com.synchrona.jred.irlap.iIrLAPListener

Will become IrLMP


Field Summary
private  iIrLMPService[] m_aServices
           
private  boolean m_bDoLogging
           
private  com.synchrona.jred.irlap.IrLAPContext m_irlap
           
private  com.synchrona.util.Log m_log
           
private  int m_yConnection
           
private static byte MASK_COMMAND_BIT
           
private static byte OPCODE_CONNECT_CONFIRM
           
private static byte OPCODE_CONNECT_REQUEST
           
private static java.lang.String PORT_NAME_PROPERTY
           
 
Constructor Summary
Test()
           
 
Method Summary
 void connectConfirm(byte yDestination, byte ySource, byte[] ayUserData)
           
 void connectIndication(com.synchrona.jred.irlap.IrLAPContext context, com.synchrona.jred.irlap.ConnectionInformation connectionInfo)
           
 void dataIndication(com.synchrona.jred.irlap.IrLAPContext context, com.synchrona.jred.irlap.ConnectionInformation connInfo, byte[] ayData)
           
 void discoveryIndication(com.synchrona.jred.irlap.IrLAPContext context, com.synchrona.jred.irlap.DiscoveryInformation discoveryInfo)
           
private  java.lang.String getPortName()
           
static void main(java.lang.String[] astrArgs)
           
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 void sendData(byte yDestination, byte ySource, byte[] ayData, int nOffset, int nLength)
           
 void serviceRequestsConnection()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORT_NAME_PROPERTY

private static final java.lang.String PORT_NAME_PROPERTY
See Also:
Constant Field Values

OPCODE_CONNECT_REQUEST

private static final byte OPCODE_CONNECT_REQUEST
See Also:
Constant Field Values

OPCODE_CONNECT_CONFIRM

private static final byte OPCODE_CONNECT_CONFIRM
See Also:
Constant Field Values

MASK_COMMAND_BIT

private static final byte MASK_COMMAND_BIT
See Also:
Constant Field Values

m_aServices

private iIrLMPService[] m_aServices

m_bDoLogging

private boolean m_bDoLogging

m_irlap

private com.synchrona.jred.irlap.IrLAPContext m_irlap

m_log

private com.synchrona.util.Log m_log

m_yConnection

private int m_yConnection
Constructor Detail

Test

public Test()
Method Detail

main

public static void main(java.lang.String[] astrArgs)

run

public void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.

Specified by:
run in interface java.lang.Runnable

connectIndication

public void connectIndication(com.synchrona.jred.irlap.IrLAPContext context,
                              com.synchrona.jred.irlap.ConnectionInformation connectionInfo)
Specified by:
connectIndication in interface com.synchrona.jred.irlap.iIrLAPListener

dataIndication

public void dataIndication(com.synchrona.jred.irlap.IrLAPContext context,
                           com.synchrona.jred.irlap.ConnectionInformation connInfo,
                           byte[] ayData)
Specified by:
dataIndication in interface com.synchrona.jred.irlap.iIrLAPListener

discoveryIndication

public void discoveryIndication(com.synchrona.jred.irlap.IrLAPContext context,
                                com.synchrona.jred.irlap.DiscoveryInformation discoveryInfo)
Specified by:
discoveryIndication in interface com.synchrona.jred.irlap.iIrLAPListener

sendData

public void sendData(byte yDestination,
                     byte ySource,
                     byte[] ayData,
                     int nOffset,
                     int nLength)

connectConfirm

public void connectConfirm(byte yDestination,
                           byte ySource,
                           byte[] ayUserData)

serviceRequestsConnection

public void serviceRequestsConnection()

getPortName

private java.lang.String getPortName()
                              throws java.lang.Exception