cleaned up tcpserver.lyng, again ;)
This commit is contained in:
1 parent
73ec8f9be6
commit
717758149b
1 file changed
+1
-1
@@ -2,7 +2,7 @@ import lyng.io.net
|
|||||||
|
|
||||||
val host = "127.0.0.1"
|
val host = "127.0.0.1"
|
||||||
val clientCount = 1000
|
val clientCount = 1000
|
||||||
val server = Net.tcpListen(0, host, clientCount, true) as TcpServer
|
val server = Net.tcpListen(0, host, clientCount, true)
|
||||||
val port = server.localAddress().port
|
val port = server.localAddress().port
|
||||||
|
|
||||||
fun payloadFor(index: Int) = "$index:${Random.nextInt()}:${Random.nextInt()}"
|
fun payloadFor(index: Int) = "$index:${Random.nextInt()}:${Random.nextInt()}"
|
||||||
|
|||||||
Reference in new issue
Block a user