cosmetics
This commit is contained in:
1 parent
40f4352a31
commit
bc46e11158
4 files changed
+33
-23
No files matched your search
@@ -52,7 +52,13 @@ fun acceptTcpDevice(port: Int, localInterface: String = "0.0.0.0"): Flow<InetTra
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun connectTcpDevice(address: String) = connectTcpDevice(address.toNetworkAddress())
|
||||
|
||||
/**
|
||||
* Connect to the TCP/IP server (see [KiloServer]) at the specified address and provide th compatible
|
||||
* [InetTransportDevice] to use with [KiloClient]. [hostPortAddress] is a string in the form of `host:port`.
|
||||
*/
|
||||
suspend fun connectTcpDevice(hostPortAddress: String): InetTransportDevice =
|
||||
connectTcpDevice(hostPortAddress.toNetworkAddress())
|
||||
|
||||
/**
|
||||
* Connect to the TCP/IP server (see [KiloServer]) at the specified address and provide th compatible
|
||||
|
||||
Reference in new issue
Block a user