mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
revert network_tcp.lua extra changes
This commit is contained in:
parent
0cc989ab75
commit
10f19a5099
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ for i=1,3 do
|
||||||
text = text .. math.random(0, 9)
|
text = text .. math.random(0, 9)
|
||||||
end
|
end
|
||||||
|
|
||||||
local server = network.tcp_open(9645, function (client)
|
local server = network.tcp_open(7645, function (client)
|
||||||
print("client connected")
|
print("client connected")
|
||||||
start_coroutine(function()
|
start_coroutine(function()
|
||||||
print("client-listener started")
|
print("client-listener started")
|
||||||
|
|
@ -25,7 +25,7 @@ for i=1,3 do
|
||||||
end, "client-listener")
|
end, "client-listener")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
network.tcp_connect("localhost", 9645, function (socket)
|
network.tcp_connect("localhost", 7645, function (socket)
|
||||||
print("connected to server")
|
print("connected to server")
|
||||||
start_coroutine(function()
|
start_coroutine(function()
|
||||||
print("data-sender started")
|
print("data-sender started")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue