commonMain.com.divpundir.mavlink.connection.tcp.TcpClientMavConnection.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connection-tcp-jvm Show documentation
Show all versions of connection-tcp-jvm Show documentation
A modern MAVLink library for the JVM written in Kotlin.
The newest version!
package com.divpundir.mavlink.connection.tcp
import com.divpundir.mavlink.api.MavDialect
import com.divpundir.mavlink.connection.MavConnection
/**
* A [MavConnection] that acts as a TCP client endpoint.
*/
public interface TcpClientMavConnection : MavConnection
/**
* Creates a [TcpClientMavConnection] that connects to the specified [host] and [port].
*/
public expect fun TcpClientMavConnection(
host: String,
port: Int,
dialect: MavDialect
): TcpClientMavConnection