mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
Update network_tcp.lua
This commit is contained in:
parent
9dacf7038f
commit
be6be8839f
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ for i=1,3 do
|
||||||
print("client-listener started")
|
print("client-listener started")
|
||||||
local received_text = ""
|
local received_text = ""
|
||||||
while client:is_alive() and #received_text < #text do
|
while client:is_alive() and #received_text < #text do
|
||||||
|
client:peek(math.random(0, 100))
|
||||||
local received = client:recv(512)
|
local received = client:recv(512)
|
||||||
if received then
|
if received then
|
||||||
received_text = received_text .. utf8.tostring(received)
|
received_text = received_text .. utf8.tostring(received)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue