public interface ServiceAccessPoint
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAcceptConnection(java.lang.Object[] parameters)
Called if the other party wants to connect to this service.
|
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.
|
void |
onSendSucceeded(LlcpSocket llcpSocket)
Called if a sendMessage was successful and the other party responded with receive ready.
|
void onLlcpActive(Llcp llcp)
llcp - void onConnectionActive(LlcpSocket llcpSocket)
llcpSocket - void onConnectFailed()
void onConnectSucceeded(LlcpSocket llcpSocket)
llcpSocket - void onSendSucceeded(LlcpSocket llcpSocket)
llcpSocket - void onSendFailed()
boolean canAcceptConnection(java.lang.Object[] parameters)
parameters - byte[] onInformation(byte[] serviceDataUnit)
serviceDataUnit - void onDisconnect()
Copyright © 2013. All Rights Reserved.