Package org.nfctools.llcp.pdu

Examples of org.nfctools.llcp.pdu.ReceiveReady


    assertEquals(1, connectionManager.getOpenConnectionsSize());
    assertTrue(processPdu.toString(), processPdu instanceof Information);

    Information information = (Information)processPdu;
    assertEquals("Hello", new String(information.getServiceDataUnit()));
    processPdu = new ReceiveReady(information.getSourceServiceAccessPoint(),
        information.getDestinationServiceAccessPoint(), 1).processPdu(connectionManager);
    assertTrue(processPdu.toString(), processPdu instanceof Disconnect);

    Disconnect disconnect = (Disconnect)processPdu;
    processPdu = new DisconnectedMode(disconnect.getSourceServiceAccessPoint(),
View Full Code Here


    assertTrue(processPdu.toString(), processPdu instanceof ConnectComplete);
    assertEquals(1, connectionManager.getOpenConnectionsSize());

    processPdu = new Information(32, 32, 0, 0, "Hello".getBytes()).processPdu(connectionManager);
    assertTrue(processPdu.toString(), processPdu instanceof ReceiveReady);
    ReceiveReady receiveReady = (ReceiveReady)processPdu;
    assertEquals(1, receiveReady.getReceived());
    assertEquals(0, receiveReady.getSend());

    processPdu = new Disconnect(32, 32).processPdu(connectionManager);
    assertTrue(processPdu.toString(), processPdu instanceof DisconnectedMode);

    assertEquals(0, connectionManager.getOpenConnectionsSize());
View Full Code Here

    if (information != null) {
      sendMessage(information);
    }
    else
      messageToSend = new ReceiveReady(addressPair.getRemote(), addressPair.getLocal(), getReceivedSequence());
  }
View Full Code Here

TOP

Related Classes of org.nfctools.llcp.pdu.ReceiveReady

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.