|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LLCPConnection
Represents a Logical Link Control Protocol (LLCP) connection for peer-to-peer
NFC communication. Used to manipulate connections opened with
Connector.open()
,
where the connection string is of the form:
Field Summary | ||
---|---|---|
static int |
CLIENT
Indicates that the device is willing to operate as a client. |
|
static int |
SERVER
Indicates that the device is willing to operate as a server. |
|
static int |
SERVER_PASSIVE
Indicates that the device is willing to operate as a server, but will not be an active initiator. |
Method Summary | ||
---|---|---|
InputStream |
getInputStream()
Returns an InputStream for the connection. |
|
int |
getLocalMIU()
Returns the local Maximum Information Unit (MIU). |
|
int |
getLocalSAP()
Returns the local Service Access Point (SAP). |
|
int |
getMode()
Indicates whether the connection was opened as a client or server. |
|
OutputStream |
getOutputStream()
Returns an OutputStream for the connection. |
|
int |
getRemoteMIU()
Returns the remote Maximum Information Unit (MIU). |
|
int |
getRemoteSAP()
Returns the remote Service Access Point (SAP). |
|
String |
getServiceName()
Returns the service name. |
Methods inherited from interface javax.microedition.io.Connection |
---|
close |
Field Detail |
---|
static final int CLIENT
static final int SERVER
static final int SERVER_PASSIVE
Method Detail |
---|
String getServiceName()
InputStream getInputStream() throws IOException
InputStream
for the connection.
InputStream
for data exchange over this connection.
IOException
- If a valid InputStream
for this LLCP connection cannot be returned.OutputStream getOutputStream() throws IOException
OutputStream
for the connection.
OutputStream
for data exchange over this connection.
IOException
- If a valid OutputStream
for this LLCP connection cannot be returned.int getMode()
LLCPConnection.CLIENT
or LLCPConnection.SERVER
.int getRemoteSAP() throws IOException
IOException
int getRemoteMIU() throws IOException
IOException
int getLocalSAP() throws IOException
IOException
int getLocalMIU() throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal