commonMain.com.divpundir.mavlink.connection.tcp.TcpServerMavConnection.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.
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 server endpoint.
*/
public interface TcpServerMavConnection : MavConnection
/**
* Creates a [TcpServerMavConnection] that listens on the specified [port] for a single connection. Once a connection is
* established, the server socket is closed.
*/
public expect fun TcpServerMavConnection(
port: Int,
dialect: MavDialect
): TcpServerMavConnection