public class SnepClient extends AbstractSnepImpl
continueMessage, fragmentIterator, maxInformationUnit, reader, snepVersion| Constructor and Description |
|---|
SnepClient() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAcceptConnection(java.lang.Object[] parameters)
Called if the other party wants to connect to this service.
|
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.
|
void |
onLlcpActive(Llcp llcp)
Called if there is a device in range and the LLCP stack is active.
|
void |
onSendSucceeded(LlcpSocket llcpSocket)
Called if a sendMessage was successful and the other party responded with receive ready.
|
protected byte[] |
processMessage(SnepMessage snepMessage) |
void |
setSnepAgentListener(SnepAgentListener snepAgentListener) |
onConnectFailed, onInformation, onSendFailedpublic void setSnepAgentListener(SnepAgentListener snepAgentListener)
public void onLlcpActive(Llcp llcp)
ServiceAccessPointonLlcpActive in interface ServiceAccessPointonLlcpActive in class AbstractSnepImplpublic void onConnectionActive(LlcpSocket llcpSocket)
ServiceAccessPointonConnectionActive in interface ServiceAccessPointonConnectionActive in class AbstractSnepImplpublic void onConnectSucceeded(LlcpSocket llcpSocket)
ServiceAccessPointonConnectSucceeded in interface ServiceAccessPointonConnectSucceeded in class AbstractSnepImplpublic void onDisconnect()
ServiceAccessPointonDisconnect in interface ServiceAccessPointonDisconnect in class AbstractSnepImplpublic void onSendSucceeded(LlcpSocket llcpSocket)
ServiceAccessPointpublic boolean canAcceptConnection(java.lang.Object[] parameters)
ServiceAccessPointprotected byte[] processMessage(SnepMessage snepMessage)
processMessage in class AbstractSnepImplCopyright © 2013. All Rights Reserved.