de.avetana.bluetooth.l2cap
Class L2CAPConnParam

java.lang.Object
  extended byde.avetana.bluetooth.l2cap.L2CAPConnParam

public class L2CAPConnParam
extends java.lang.Object

The class used to manage L2CAP connection parameters.

COPYRIGHT:
(c) Copyright 2004 Avetana GmbH ALL RIGHTS RESERVED.

This file is part of the Avetana bluetooth API for Linux.

The Avetana bluetooth API for Linux is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

The Avetana bluetooth API is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

The development of the Avetana bluetooth API is based on the work of Christian Lorenz (see the Javabluetooth Stack at http://www.javabluetooth.org) for some classes, on the work of the jbluez team (see http://jbluez.sourceforge.net/) and on the work of the bluez team (see the BlueZ linux Stack at http://www.bluez.org) for the C code. Classes, part of classes, C functions or part of C functions programmed by these teams and/or persons are explicitly mentioned.



Description:
A utility class for the C-code.
This class encapsulates three variables set by the bluez stack for a connection.

The native method openL2CAPNative returns a L2CAPConnParam object.


Field Summary
 int m_fid
          The connection ID
 int m_receiveMTU
          The value of receiveMTU
 int m_transmitMTU
          The value of transmitMTU
 
Constructor Summary
L2CAPConnParam(int fid, int receiveMTU, int transmitMTU)
          Creates a new instance of L2CAPConnParam and sets the connection parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_fid

public int m_fid
The connection ID


m_receiveMTU

public int m_receiveMTU
The value of receiveMTU


m_transmitMTU

public int m_transmitMTU
The value of transmitMTU

Constructor Detail

L2CAPConnParam

public L2CAPConnParam(int fid,
                      int receiveMTU,
                      int transmitMTU)
Creates a new instance of L2CAPConnParam and sets the connection parameters

Parameters:
fid - The connection ID
receiveMTU - The value of receiveMTU
transmitMTU - The value of transmitMTU