19 lines
532 B
Java
19 lines
532 B
Java
package net.shadowfacts.phycon.api;
|
|
|
|
import net.shadowfacts.phycon.api.packet.Packet;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/**
|
|
* @author shadowfacts
|
|
*/
|
|
// todo: does PacketSource actually need to extend NetworkDevice?
|
|
public interface PacketSource extends NetworkDevice {
|
|
// todo: better name for this
|
|
void sendPacket(@NotNull Packet packet);
|
|
|
|
// void sendToAll(@NotNull Packet packet);
|
|
//
|
|
// void sendToAll(@NotNull Packet packet, @NotNull Iterable<PacketSink> destinations);
|
|
}
|