|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||
ObjectEnum<P2PConnection.P2PConnectionParameter>
org.opennfc.p2p.P2PConnection.P2PConnectionParameter
public static enum P2PConnection.P2PConnectionParameter
This class collects the P2P connection parameters.
| Enum Constant Summary | |
|---|---|
CONNECTION_ESTABLISHED
Connection oriented status. |
|
DATA_AVAILABLE
Data availability status. |
|
IS_SERVER
If true, the socket is server, if false, the socket is client. |
|
LOCAL_MIU
Local MIU for connection oriented. |
|
LOCAL_RW
Local Receive Window for connection oriented. |
|
LOCAL_SAP
Local SAP associated to the connection. |
|
REMOTE_MIU
Remote MIU associated to a established connection-oriented. |
|
REMOTE_RW
Remote RW associated to a established connection-oriented. |
|
REMOTE_SAP
Remote SAP associated to a established connection-oriented. |
|
| Method Summary | |
|---|---|
int |
getValue()
Returns the property value. |
static P2PConnection.P2PConnectionParameter |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static P2PConnection.P2PConnectionParameter[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final P2PConnection.P2PConnectionParameter LOCAL_MIU
This parameter is sent during the establishment of the connection. It allows to specify the maximum packet size in bytes we are able to receive.
Must be in the range [128-256]
The current parameter value can be retrieved using
getParameter() and set
using setParameter().
If the connection is already established, setting the value will only apply on next connection.
public static final P2PConnection.P2PConnectionParameter LOCAL_RW
This parameter is sent during the establishment of the connection.
Must be in the range [0-15]
The current parameter value can be retrieved using
getParameter() and set
using setParameter().
If the connection is already established, setting the value will only apply on next connection.
public static final P2PConnection.P2PConnectionParameter CONNECTION_ESTABLISHED
The current parameter value can be retrieved using
getParameter().
If not zero, the connection is established. If set to zero, the connection is not established.
public static final P2PConnection.P2PConnectionParameter DATA_AVAILABLE
The current parameter value can be retrieved using
getParameter().
If not zero, some data can be received on the connection.
public static final P2PConnection.P2PConnectionParameter LOCAL_SAP
The current parameter value can be retrieved using
getParameter().
public static final P2PConnection.P2PConnectionParameter REMOTE_SAP
The current parameter value can be retrieved using
getParameter().
This parameter indicates the maximum frame size we are able to send to the peer.
public static final P2PConnection.P2PConnectionParameter REMOTE_MIU
The current parameter value can be retrieved using
getParameter().
This parameter indicates the maximum packet size we are able to send to the peer.
public static final P2PConnection.P2PConnectionParameter REMOTE_RW
The current parameter value can be retrieved using
getParameter().
This parameter indicates the maximum number of I PDU that can be sent to the peer without receiving acknowledge.
public static final P2PConnection.P2PConnectionParameter IS_SERVER
The current parameter value can be retrieved using
getParameter().
This parameter allows to know how a client/server socket has been established.
| Method Detail |
|---|
public static P2PConnection.P2PConnectionParameter[] values()
for (P2PConnection.P2PConnectionParameter c : P2PConnection.P2PConnectionParameter.values()) System.out.println(c);
public static P2PConnection.P2PConnectionParameter valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getValue()
|
Copyright © 2010-2011 Inside Secure |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||