273
|
1 /*
|
|
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved.
|
|
3 * Please refer to the LICENSE.txt for licensing details.
|
|
4 */
|
|
5 package ch.ethz.ssh2.transport;
|
|
6
|
|
7 import java.io.IOException;
|
|
8
|
|
9 /**
|
|
10 * @author Christian Plattner
|
|
11 * @version $Id: MessageHandler.java 160 2014-05-01 14:30:26Z dkocher@sudo.ch $
|
|
12 */
|
|
13 public interface MessageHandler {
|
|
14 public void handleMessage(byte[] msg) throws IOException;
|
|
15
|
|
16 public void handleFailure(IOException failure);
|
|
17 }
|