mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 01:40:28 +00:00
documentation touch-ups
This commit is contained in:
parent
d9be18413a
commit
95d0ee7f42
2 changed files with 6 additions and 6 deletions
|
@ -7982,8 +7982,8 @@ function unix.Errno:__tostring() end
|
||||||
---
|
---
|
||||||
--- Initiates the connection handshake immediately.
|
--- Initiates the connection handshake immediately.
|
||||||
---@param fd integer
|
---@param fd integer
|
||||||
---@param hostname string for validating that the hostname on the certificate matches what is expected
|
---@param hostname string # for validating that the hostname on the certificate matches what is expected
|
||||||
---@return crypto.tls.Connection
|
---@return crypto.tls.Connection # a connection object, with methods documented below.
|
||||||
---@nodiscard
|
---@nodiscard
|
||||||
function crypto.tls.wrap(fd, hostname) end
|
function crypto.tls.wrap(fd, hostname) end
|
||||||
|
|
||||||
|
@ -7998,7 +7998,7 @@ function crypto.tls.Connection:read() end
|
||||||
---
|
---
|
||||||
--- This call is blocking.
|
--- This call is blocking.
|
||||||
---@param data string # the data to write to the connection.
|
---@param data string # the data to write to the connection.
|
||||||
---@return nil
|
---@return integer # the number of bytes written to the connection.
|
||||||
function crypto.tls.Connectino:write() end
|
function crypto.tls.Connectino:write() end
|
||||||
|
|
||||||
--- Close the connection.
|
--- Close the connection.
|
||||||
|
|
|
@ -5179,13 +5179,13 @@ int LuaCryptoTlsConnectionWrite(lua_State *L) {
|
||||||
size_t size;
|
size_t size;
|
||||||
const char *data;
|
const char *data;
|
||||||
data = luaL_checklstring(L, 2, &size);
|
data = luaL_checklstring(L, 2, &size);
|
||||||
return TlsConnectionWrite(GetTlsConnection(L), data, size);
|
lua_pushinteger(L, TlsConnectionWrite(GetTlsConnection(L), data, size));
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int LuaCryptoTlsConnectionClose(lua_State *L) {
|
int LuaCryptoTlsConnectionClose(lua_State *L) {
|
||||||
TlsConnectionClose(GetTlsConnection(L));
|
TlsConnectionClose(GetTlsConnection(L));
|
||||||
lua_pop(L, 1);
|
return 0;
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int LuaCryptoTlsConnectionTostring(lua_State *L) {
|
static int LuaCryptoTlsConnectionTostring(lua_State *L) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue