This commit is contained in:
MihailRis 2025-09-24 22:51:10 +03:00
parent a49d12565d
commit 7092ec0eff
2 changed files with 8 additions and 4 deletions

View file

@ -1,5 +1,5 @@
for i=1,3 do
print(string.format("iteration %s", i + 1))
print(string.format("iteration %s", i))
local text = ""
local complete = false
@ -7,7 +7,7 @@ for i=1,3 do
text = text .. math.random(0, 9)
end
local server = network.tcp_open(7645, function (client)
local server = network.tcp_open(9645, function (client)
print("client connected")
start_coroutine(function()
print("client-listener started")
@ -25,7 +25,7 @@ for i=1,3 do
end, "client-listener")
end)
network.tcp_connect("localhost", 7645, function (socket)
network.tcp_connect("localhost", 9645, function (socket)
print("connected to server")
start_coroutine(function()
print("data-sender started")