commonMain.com.divpundir.mavlink.connection.udp.UdpClientMavConnection.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connection-udp-jvm Show documentation
Show all versions of connection-udp-jvm Show documentation
A modern MAVLink library for the JVM written in Kotlin.
package com.divpundir.mavlink.connection.udp
import com.divpundir.mavlink.api.MavDialect
import com.divpundir.mavlink.connection.MavConnection
/**
* A [MavConnection] that acts as a UDP client endpoint.
*/
public interface UdpClientMavConnection : MavConnection
/**
* Creates a [UdpClientMavConnection] that connects to the specified [host] and [port].
*
* For connecting, pings the remote server with 32 bytes of data to let the remote server know its address.
*/
public expect fun UdpClientMavConnection(
host: String,
port: Int,
dialect: MavDialect
): UdpClientMavConnection