📄 ssh2connectioneventadapter.java
字号:
/****************************************************************************** * * Copyright (c) 1999-2003 AppGate Network Security AB. All Rights Reserved. * * This file contains Original Code and/or Modifications of Original Code as * defined in and that are subject to the MindTerm Public Source License, * Version 2.0, (the 'License'). You may not use this file except in compliance * with the License. * * You should have received a copy of the MindTerm Public Source License * along with this software; see the file LICENSE. If not, write to * AppGate Network Security AB, Otterhallegatan 2, SE-41118 Goteborg, SWEDEN * *****************************************************************************/package com.mindbright.ssh2;import java.net.Socket;/** * This class is an adapter for the interface * <code>SSH2ConnectionEventHandler</code>. * * @see SSH2ConnectionEventHandler */public class SSH2ConnectionEventAdapter implements SSH2ConnectionEventHandler{ public void channelAdded(SSH2Connection connection, SSH2Channel channel) { } public void channelDeleted(SSH2Connection connection, SSH2Channel channel) { } public void channelConnect(Object originator, SSH2Channel channel, Socket fwdSocket) { } public void channelClosed(SSH2Connection connection, SSH2Channel channel) { } public boolean listenerAccept(SSH2Listener listener, Socket fwdSocket) { return true; } public void localForwardedConnect(SSH2Connection connection, SSH2Listener listener, SSH2Channel channel) { } public void localDirectConnect(SSH2Connection connection, SSH2Listener listener, SSH2Channel channel) { } public void localSessionConnect(SSH2Connection connection, SSH2Channel channel) { } public void localX11Connect(SSH2Connection connection, SSH2Listener listener, SSH2Channel channel) { } public void localChannelOpenFailure(SSH2Connection connection, SSH2Channel channel, int reasonCode, String reasonText, String languageTag) { } public void remoteForwardedConnect(SSH2Connection connection, String remoteAddr, int remotePort, SSH2Channel channel) { } public void remoteDirectConnect(SSH2Connection connection, SSH2Channel channel) { } public void remoteSessionConnect(SSH2Connection connection, String remoteAddr, int remotePort, SSH2Channel channel) { } public void remoteX11Connect(SSH2Connection connection, SSH2Channel channel) { } public void remoteChannelOpenFailure(SSH2Connection connection, String channelType, String targetAddr, int targetPort, String originAddr, int originPort, SSH2Exception cause) { } public void setSocketOptions(int channelType, Socket s) { // Do nothing by default, derive this class to change }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -