public abstract class AbstractSnepImpl extends Object implements ServiceAccessPoint
| Modifier and Type | Field and Description |
|---|---|
protected SnepMessage |
continueMessage |
protected FragmentIterator |
fragmentIterator |
protected int |
maxInformationUnit |
protected FragmentReader |
reader |
protected byte |
snepVersion |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSnepImpl(byte continueMessageCode) |
| Modifier and Type | Method and Description |
|---|---|
void |
onConnectFailed()
Called if a connection failed/timed out.
|
void |
onConnectionActive(LlcpSocket llcpSocket)
Called if this Service has an active connection.
|
void |
onConnectSucceeded(LlcpSocket llcpSocket)
Called if a connection succeeded and the other party is ready to receive data.
|
void |
onDisconnect()
Called if the other party ended the connection or the LLCP stack ended.
|
byte[] |
onInformation(byte[] serviceDataUnit)
Called if the other party has send a message or as a response to a send message from this implementation.
|
void |
onLlcpActive(Llcp llcp)
Called if there is a device in range and the LLCP stack is active.
|
void |
onSendFailed()
Called if a sendMessage failed.
|
protected abstract byte[] |
processMessage(SnepMessage snepMessage) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanAcceptConnection, onSendSucceededprotected byte snepVersion
protected int maxInformationUnit
protected FragmentReader reader
protected FragmentIterator fragmentIterator
protected SnepMessage continueMessage
public void onLlcpActive(Llcp llcp)
ServiceAccessPointonLlcpActive in interface ServiceAccessPointpublic void onConnectFailed()
ServiceAccessPointonConnectFailed in interface ServiceAccessPointpublic void onConnectSucceeded(LlcpSocket llcpSocket)
ServiceAccessPointonConnectSucceeded in interface ServiceAccessPointpublic void onSendFailed()
ServiceAccessPointonSendFailed in interface ServiceAccessPointpublic void onDisconnect()
ServiceAccessPointonDisconnect in interface ServiceAccessPointpublic void onConnectionActive(LlcpSocket llcpSocket)
ServiceAccessPointonConnectionActive in interface ServiceAccessPointpublic byte[] onInformation(byte[] serviceDataUnit)
ServiceAccessPointonInformation in interface ServiceAccessPointprotected abstract byte[] processMessage(SnepMessage snepMessage)
Copyright © 2013. All Rights Reserved.