PhysicalConnectivity/src/main/java/net/shadowfacts/phycon/api/PacketSink.java

17 lines
333 B
Java
Raw Normal View History

2019-10-27 01:36:31 +00:00
package net.shadowfacts.phycon.api;
import net.shadowfacts.phycon.api.packet.Packet;
import org.jetbrains.annotations.NotNull;
/**
* @author shadowfacts
*/
2021-02-13 23:24:36 +00:00
public interface PacketSink extends NetworkDevice {
2019-10-27 01:36:31 +00:00
2019-10-27 03:13:26 +00:00
@NotNull
2021-02-13 23:24:36 +00:00
Iterable<Interface> getDeviceInterfaces();
2019-10-27 03:13:26 +00:00
2021-02-13 23:24:36 +00:00
void handle(@NotNull Packet packet, @NotNull Interface itf);
2019-10-27 01:36:31 +00:00
}