注释掉一些测试用代码
This commit is contained in:
@@ -157,10 +157,10 @@ while true do--Running
|
|||||||
--Receive data
|
--Receive data
|
||||||
local s,_,p=SOCK:receive(length)
|
local s,_,p=SOCK:receive(length)
|
||||||
if s then
|
if s then
|
||||||
print(("%s[%d]:%s"):format(threadName,length,s))
|
-- print(("%s[%d]:%s"):format(threadName,length,s))
|
||||||
res=s
|
res=s
|
||||||
elseif p then--UNF head
|
elseif p then--UNF head
|
||||||
print(("%s[%d/%d]:%s"):format(threadName,#p,length,p))
|
-- print(("%s[%d/%d]:%s"):format(threadName,#p,length,p))
|
||||||
UFF=true
|
UFF=true
|
||||||
sBuffer=sBuffer..p
|
sBuffer=sBuffer..p
|
||||||
length=length-#p
|
length=length-#p
|
||||||
@@ -183,21 +183,21 @@ while true do--Running
|
|||||||
elseif op==0 then--0=continue
|
elseif op==0 then--0=continue
|
||||||
lBuffer=lBuffer..res
|
lBuffer=lBuffer..res
|
||||||
if fin then
|
if fin then
|
||||||
-- print("FIN=1 (c")
|
-- print("FIN=1 (c")
|
||||||
readCHN:push(lBuffer)
|
readCHN:push(lBuffer)
|
||||||
lBuffer=""
|
lBuffer=""
|
||||||
else
|
else
|
||||||
-- print("FIN=0 (c")
|
-- print("FIN=0 (c")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
readCHN:push(op)
|
readCHN:push(op)
|
||||||
if fin then
|
if fin then
|
||||||
-- print("OP: "..op.."\tFIN=1")
|
-- print("OP: "..op.."\tFIN=1")
|
||||||
readCHN:push(res)
|
readCHN:push(res)
|
||||||
else
|
else
|
||||||
-- print("OP: "..op.."\tFIN=0")
|
-- print("OP: "..op.."\tFIN=0")
|
||||||
sBuffer=res
|
sBuffer=res
|
||||||
-- print("START pack: "..res)
|
-- print("START pack: "..res)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user