--- -- line oriented client sockets --- -- Creates and connect a socket. -- @param host string The host you want to connect to. -- @param port number The port you want to connect to. -- @param verbose_flag number One (or a sum of) psock.(ALL,NONE,SEND,RECV,INFO) -- @return userdata The socket object, or nil on failure. function psock.connect(host,port,verbose_flag) end --- -- Sends a string s. -- The function will send s.."\r\n" -- @param s string the data to send. -- @return number positive on success, negative on error. function send(s) end --- -- Receives a line. -- The function automatically strips the ending "\r\n" from the line -- @return string the line, nil on failure. function recv() end