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

16 lines
319 B
Java
Raw Normal View History

package net.shadowfacts.phycon.api;
import net.shadowfacts.phycon.api.packet.Packet;
/**
* @author shadowfacts
*/
public interface PacketSource {
// todo: better name for this
void sendToSingle(Packet packet);
void sendToAll(Packet packet);
void sendToAll(Packet packet, Iterable<PacketSink> destinations);
}