2021-02-13 23:24:36 +00:00
|
|
|
package net.shadowfacts.phycon.api;
|
|
|
|
|
|
|
|
import net.shadowfacts.phycon.api.frame.EthernetFrame;
|
|
|
|
import net.shadowfacts.phycon.api.util.MACAddress;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author shadowfacts
|
|
|
|
*/
|
|
|
|
public interface Interface {
|
|
|
|
|
|
|
|
@NotNull
|
|
|
|
MACAddress getMACAddress();
|
|
|
|
|
|
|
|
void receive(@NotNull EthernetFrame frame);
|
|
|
|
|
|
|
|
void send(@NotNull EthernetFrame frame);
|
|
|
|
|
2023-03-13 02:18:34 +00:00
|
|
|
default void cableDisconnected() {}
|
|
|
|
|
2021-02-13 23:24:36 +00:00
|
|
|
}
|