?? irlapstateconnect.java
字號(hào):
/*
**************************************************************************
** $Header: /cvsroot/jred/jred/src/com/synchrona/jred/irlap/IrLAPStateConnect.java,v 1.2 2000/07/30 20:18:12 mpatters Exp $
**
** Copyright (C) 2000 Synchrona, Inc. All rights reserved.
**
** This file is part of JRed, a 100% Java implementation of the IrDA
** infrared communications protocols.
**
** This file may be distributed under the terms of the Synchrona Public
** License as defined by Synchrona, Inc. and appearing in the file
** LICENSE included in the packaging of this file. The Synchrona Public
** License is based on the Q Public License as defined by Troll Tech AS
** of Norway; it differs only in its use of the courts of Florida, USA
** rather than those of Oslo, Norway.
**************************************************************************
*/
package com.synchrona.jred.irlap;
import java.io.PrintWriter;
class IrLAPStateConnect extends IrLAPState {
//----------------------------------------------------------------
//----------------------------------------------------------------
private static IrLAPState s_instance = new IrLAPStateConnect();
public static IrLAPState getInstance() {
return s_instance;
}
private IrLAPStateConnect() {
}
//----------------------------------------------------------------
//----------------------------------------------------------------
public void connectResponse(IrLAPContext context, int nDestination, byte yConnection, byte [] ayCommParameters) throws Exception {
context.setMediaBusy(true);
context.nextState(IrLAPStateReceive.getInstance());
context.negotiateConnectionParameters(ayCommParameters);
context.initializeConnectionState();
//context.sendUA(nDestination, yConnection, true);
context.sendUA(nDestination, yConnection, true);
context.applyConnectionParameters();
context.startWatchdogTimer();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -