org.nfctools.llcp
Class LlcpSocket

java.lang.Object
  extended by org.nfctools.llcp.LlcpSocket

public class LlcpSocket
extends Object


Constructor Summary
LlcpSocket(AddressPair addressPair, ServiceAccessPoint serviceAccessPoint)
           
 
Method Summary
 void disconnect()
           
 boolean equalsAddress(AddressPair addressPair)
           
 int getMaximumInformationUnit()
           
protected  AbstractProtocolDataUnit getMessageToSend()
           
 int getReceivedSequence()
           
 int getSendSequence()
           
 void incReceivedSequence()
           
 void incSendSequence()
           
 void onConnectFailed(int reason)
           
 void onConnectionActive()
           
 void onConnectSucceeded()
           
 void onDisconnect()
           
 void onDisconnectSucceeded()
           
 void onInformation(int received, int send, byte[] serviceDataUnit)
           
 void onSendConfirmed(int received)
           
 void sendMessage(byte[] message)
           
 void setMaximumInformationUnitExtension(int maximumInformationUnitExtension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LlcpSocket

public LlcpSocket(AddressPair addressPair,
                  ServiceAccessPoint serviceAccessPoint)
Method Detail

setMaximumInformationUnitExtension

public void setMaximumInformationUnitExtension(int maximumInformationUnitExtension)

incReceivedSequence

public void incReceivedSequence()

incSendSequence

public void incSendSequence()

getReceivedSequence

public int getReceivedSequence()

getSendSequence

public int getSendSequence()

sendMessage

public void sendMessage(byte[] message)

onSendConfirmed

public void onSendConfirmed(int received)

getMessageToSend

protected AbstractProtocolDataUnit getMessageToSend()

getMaximumInformationUnit

public int getMaximumInformationUnit()

disconnect

public void disconnect()

onInformation

public void onInformation(int received,
                          int send,
                          byte[] serviceDataUnit)

onConnectSucceeded

public void onConnectSucceeded()

onDisconnect

public void onDisconnect()

onDisconnectSucceeded

public void onDisconnectSucceeded()

onConnectFailed

public void onConnectFailed(int reason)

onConnectionActive

public void onConnectionActive()

equalsAddress

public boolean equalsAddress(AddressPair addressPair)


Copyright © 2012. All Rights Reserved.