diff --git a/nselib/comm.lua b/nselib/comm.lua index 625b8a367..ea1f5821a 100644 --- a/nselib/comm.lua +++ b/nselib/comm.lua @@ -154,7 +154,7 @@ local function is_ssl(port_number) end --- This function returns best protocol order for trying to open a --- conenction based on port and service information +-- connection based on port and service information -- -- The first value is the best option, the second is the worst -- @param port The port table @@ -177,8 +177,8 @@ end -- -- Possible options: -- timeout: generic timeout value --- connect_timeout: especific timeout for connection --- request_timeout: especific timeout for requests +-- connect_timeout: specific timeout for connection +-- request_timeout: specific timeout for requests -- recv_before: receive data before sending first payload -- -- Default timeout is set to 8000. @@ -187,7 +187,7 @@ end -- @param port The destination host port -- @param protocol The protocol for the connection -- @param data The first data payload of the connection --- @return sd The socket descriptor, nil if no connection is estabilished +-- @return sd The socket descriptor, nil if no connection is established -- @return response The response received for the payload -- @return early_resp If opt recv_before is true, returns the value -- of the first receive (before sending data)