Procházet zdrojové kódy

[Minor] function -> method

tags/1.8.0
Mikhail Galanin před 5 roky
rodič
revize
8fa5200f60
1 změnil soubory, kde provedl 7 přidání a 0 odebrání
  1. 7
    0
      lualib/lua_tcp_sync.lua

+ 7
- 0
lualib/lua_tcp_sync.lua Zobrazit soubor

@@ -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

Načítá se…
Zrušit
Uložit