2021-02-12 04:11:50 +00:00
|
|
|
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;
|
2021-02-12 04:11:50 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author shadowfacts
|
|
|
|
*/
|
2021-02-13 23:24:36 +00:00
|
|
|
// todo: does PacketSource actually need to extend NetworkDevice?
|
|
|
|
public interface PacketSource extends NetworkDevice {
|
2021-02-12 04:11:50 +00:00
|
|
|
// todo: better name for this
|
2021-02-14 02:28:44 +00:00
|
|
|
void sendPacket(@NotNull Packet packet);
|
2021-02-12 04:11:50 +00:00
|
|
|
|
2021-02-13 23:24:36 +00:00
|
|
|
// void sendToAll(@NotNull Packet packet);
|
|
|
|
//
|
|
|
|
// void sendToAll(@NotNull Packet packet, @NotNull Iterable<PacketSink> destinations);
|
2021-02-12 04:11:50 +00:00
|
|
|
}
|