|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface P2PLink
This interface exposes the methods to retrieves the parameters values of the P2P protocol negotiated during the link establishment.
These functions can be used only when a P2P link is established.
| Method Summary | |
|---|---|
void |
close()
Closes a pending link. |
byte |
getAgreeLlcpVersion()
Retrieves the version of the LLC Protocol agreed between both devices. |
int |
getBaudeRate()
Retrieves the link speed, in bits per seconds. |
byte |
getRemoteLlcpVersion()
Retrieves the remote LLC Protocol version. |
int |
getRemoteLto()
Retrieves the remote link timeout, expressed in ms. |
int |
getRemoteMiu()
Retrieves the remote Maximum Information Unit : maximum information field size that the peer is able to receive. |
int |
getRemoteWks()
Retrieves the remote Well-Known service list. |
boolean |
isInitiator()
Informs if the device is P2P initiator. |
byte |
UriLookup(String serviceUri)
Retrieves on which SAP the specified serviceUri is running
on the peer device. |
| Method Detail |
|---|
byte getAgreeLlcpVersion()
throws IOException
IOException - if the link is broken.
byte getRemoteLlcpVersion()
throws IOException
IOException - if the link is broken.
int getRemoteMiu()
throws IOException
IOException - if the link is broken.
int getRemoteLto()
throws IOException
IOException - if the link is broken.
int getRemoteWks()
throws IOException
IOException - if the link is broken.
int getBaudeRate()
throws IOException
IOException - if the link is broken.
boolean isInitiator()
throws IOException
IOException - if the link is broken.
byte UriLookup(String serviceUri)
throws IOException,
NfcException
serviceUri is running
on the peer device. The SAP is only valid during the duration of
establishment of the P2P link. If the P2P link is broken, the association
is no longer valid and a new URI lookup must be done.
This method block until the peer device respond, or an exception is thrown.
serviceUri - The service URI. This value shall not be null and should
contain a well-formed URI.
IllegalArgumentException - if serviceUri is null.
IllegalStateException - if other lookup operation is already in progress.
IOException - if the link is broken.
NfcException - if a NFC error occurred.
void close()
throws IOException
IOException - if the link is broken.
|
Copyright © 2010-2011 Inside Secure |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||