PhysicalConnectivity/src/main/kotlin/net/shadowfacts/phycon/packet/BasePacket.kt

18 lines
359 B
Kotlin
Raw Normal View History

2021-02-28 18:48:39 +00:00
package net.shadowfacts.phycon.packet
2019-10-27 01:36:31 +00:00
import net.shadowfacts.phycon.api.packet.Packet
2021-02-13 23:24:36 +00:00
import net.shadowfacts.phycon.api.util.IPAddress
2019-10-27 01:36:31 +00:00
/**
* @author shadowfacts
*/
abstract class BasePacket(
2021-12-22 23:59:51 +00:00
private val source: IPAddress,
private val destination: IPAddress
2019-10-27 01:36:31 +00:00
): Packet {
override fun getSource() = source
override fun getDestination() = destination
2021-02-28 18:48:39 +00:00
}