Source code: com/synchrona/jred/IrLMPConnection.java
1 /*
2 **************************************************************************
3 ** $Header: /cvsroot/jred/jred/src/com/synchrona/jred/IrLMPConnection.java,v 1.1.1.1 2000/07/05 04:41:52 mpatters Exp $
4 **
5 ** Copyright (C) 2000 Synchrona, Inc. All rights reserved.
6 **
7 ** This file is part of JRed, a 100% Java implementation of the IrDA
8 ** infrared communications protocols.
9 **
10 ** This file may be distributed under the terms of the Synchrona Public
11 ** License as defined by Synchrona, Inc. and appearing in the file
12 ** LICENSE included in the packaging of this file. The Synchrona Public
13 ** License is based on the Q Public License as defined by Troll Tech AS
14 ** of Norway; it differs only in its use of the courts of Florida, USA
15 ** rather than those of Oslo, Norway.
16 **************************************************************************
17 */
18 package com.synchrona.jred;
19
20 import com.synchrona.jred.irlap.ConnectionInformation;
21
22 public class IrLMPConnection {
23 private byte m_dstLsap; // destination LSAP
24 private ConnectionInformation m_irlapConnection;
25 private byte m_srcLsap; // source LSAP
26
27 public IrLMPConnection(Test irlmp, byte dstLsap, byte srcLsap, ConnectionInformation irlapConnection) {
28 m_dstLsap = dstLsap;
29 m_irlapConnection = irlapConnection;
30 m_srcLsap = srcLsap;
31 }
32
33 public ConnectionInformation getIrLAPConnection() {
34 return m_irlapConnection;
35 }
36
37 public byte getDestinationLsap() {
38 return m_dstLsap;
39 }
40
41 public byte getSourceLsap() {
42 return m_srcLsap;
43 }
44 }