end
--[[[
--- @function tcp_sync.read_once()
+-- @method tcp_sync.read_once()
--
-- Acts exactly like low-level tcp_sync.read_once()
-- the only exception is that if there is some pending data,
end
--[[[
--- @function tcp_sync.read_until(pattern)
+-- @method tcp_sync.read_until(pattern)
--
-- Reads data from the connection until pattern is found
-- returns all bytes before the pattern
end
--[[[
--- @function tcp_sync.read_bytes(n)
+-- @method tcp_sync.read_bytes(n)
--
-- Reads {n} bytes from the stream
--
end
--[[[
--- @function tcp_sync.read_until_eof(n)
+-- @method tcp_sync.read_until_eof(n)
--
-- Reads stream until EOF is reached
--
end
--[[[
--- @function tcp_sync.write(n)
+-- @method tcp_sync.write(n)
--
-- Writes data into the stream.
--
end
--[[[
--- @function tcp_sync.close()
+-- @method tcp_sync.close()
--
-- Closes the connection. If the connection was created with task,
-- this method is called automatically as soon as the task is done
end
--[[[
--- @function tcp_sync.eof()
+-- @method tcp_sync.eof()
--
-- @return
-- true if last "read" operation ended with EOF