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

19 lines
532 B
Java
Raw Normal View History

package net.shadowfacts.phycon.api;
import net.shadowfacts.phycon.api.packet.Packet;
2021-02-13 23:24:36 +00:00
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* @author shadowfacts
*/
2021-02-13 23:24:36 +00:00
// todo: does PacketSource actually need to extend NetworkDevice?
public interface PacketSource extends NetworkDevice {
// todo: better name for this
void sendPacket(@NotNull Packet packet);
2021-02-13 23:24:36 +00:00
// void sendToAll(@NotNull Packet packet);
//
// void sendToAll(@NotNull Packet packet, @NotNull Iterable<PacketSink> destinations);
}