blob: b81118e99c99d3366082c9f1e84cdafa9d775cf7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.fs4;
import java.nio.ByteBuffer;
import com.yahoo.fs4.mplex.FS4Channel;
/**
* Interface for recieving notifications of packets sent or recieved.
*
* @author tonytv
*/
public interface PacketListener {
void packetSent(FS4Channel channel, BasicPacket packet, ByteBuffer serializedForm);
void packetReceived(FS4Channel channel, BasicPacket packet, ByteBuffer serializedForm);
}
|