All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.ditchoom.socket.ClientToServerSocket.kt Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
package com.ditchoom.socket

import kotlin.time.Duration
import kotlin.time.Duration.Companion.seconds
import kotlin.time.ExperimentalTime

@ExperimentalTime
@ExperimentalUnsignedTypes
interface ClientToServerSocket : ClientSocket {
    suspend fun open(
        port: UShort,
        timeout: Duration = seconds(1),
        hostname: String? = null,
        socketOptions: SocketOptions? = null
    ): SocketOptions
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy