Bladeren bron

[Minor] function -> method

tags/1.8.0
Mikhail Galanin 5 jaren geleden
bovenliggende
commit
8fa5200f60
1 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen
  1. 7
    0
      lualib/lua_tcp_sync.lua

+ 7
- 0
lualib/lua_tcp_sync.lua Bestand weergeven

@@ -28,7 +28,7 @@ function tcp_sync.new(connection)
end

--[[[
-- @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,
@@ -53,7 +53,7 @@ function tcp_sync:read_once()
end

--[[[
-- @method tcp_sync.read_until(pattern)
--
-- Reads data from the connection until pattern is found
-- returns all bytes before the pattern
@@ -84,7 +84,7 @@ function tcp_sync:read_until(pattern)
end

--[[[
-- @method tcp_sync.read_bytes(n)
--
-- Reads {n} bytes from the stream
--
@@ -112,7 +112,7 @@ function tcp_sync:read_bytes(n)
end

--[[[
-- @method tcp_sync.read_until_eof(n)
--
-- Reads stream until EOF is reached
--
@@ -141,7 +141,7 @@ function tcp_sync:read_until_eof()
end

--[[[
-- @method tcp_sync.write(n)
--
-- Writes data into the stream.
--
@@ -155,7 +155,7 @@ function tcp_sync:write(data)
end

--[[[
-- @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
@@ -170,7 +170,7 @@ function tcp_sync:close()
end

--[[[
-- @method tcp_sync.eof()
--
-- @return
-- true if last "read" operation ended with EOF

Laden…
Annuleren
Opslaan