ВБ
Size: a a a
ВБ
YG
ВБ
ВБ
YG
ВБ
ВБ
ВБ
ВБ
ВБ
ВБ
ВБ
ВБ
local function writeSocket()
local debughost, debugport = "127.0.0.1", 32154
print("Attempting connection to host '" ..debughost.. "' and port " ..debugport.. "...")
local text = "POST /e1crdbg/rdbgTest?cmd=test HTTP/1.1"
local tcp = assert(socket.connect(debughost, debugport))
--note the newline below
assert(tcp:send(text.."\n"))
local s, status = tcp:receive()
print(s)
print(status)
tcp:close()
end;
I
local function writeSocket()
local debughost, debugport = "127.0.0.1", 32154
print("Attempting connection to host '" ..debughost.. "' and port " ..debugport.. "...")
local text = "POST /e1crdbg/rdbgTest?cmd=test HTTP/1.1"
local tcp = assert(socket.connect(debughost, debugport))
--note the newline below
assert(tcp:send(text.."\n"))
local s, status = tcp:receive()
print(s)
print(status)
tcp:close()
end;