Documentation for Module: ports.r ||  Module Index

syntax: !overview File, network, email operations
author: Tim Johnson tim@akwebsoft.com

Global Index
dns? get-dirs load-session-file parse-doc read-dir
do-with IP-addresses mtime puts sendmail
file-size ip?      

Global function documentation

Function: dns?TopGlobals IndexNext
    syntax: dns? Read Machine/computer name
Function: do-withTopGlobals IndexBackNext
    syntax: do-with <word-file-string> <word-file-string-subdir>
    description: evaluate a single file as a word, string or file from subdirectory.
    Note: Unlike import or modules - file extension is optional
    refinement: /again Force reload
Function: file-sizeTopGlobals IndexBackNext
    syntax: file-size <file-or-string> Get the size of a file.
Function: get-dirsTopGlobals IndexBackNext
    syntax: get-dirs Return list of sub-directories.
Function: IP-addressesTopGlobals IndexBackNext
    syntax: IP-addresses Collect IP addresses for Host Machine
Function: ip?TopGlobals IndexBackNext
    syntax: ip? Read Machine/computer Network address
Function: load-session-fileTopGlobals IndexBackNext
    syntax: load-session-file <file-string> <string-file-path>
    description: Loads a session file from path.
      Optional object prototype - returns an object
    refinement: /proto <object-prototype> Load an object template
Function: mtimeTopGlobals IndexBackNext
    syntax: mtime <file> Get MTime for file
Function: parse-docTopGlobals IndexBackNext
    syntax: parse-doc <str-url-file>
    description: Parses a web page into a block of strings in which
      tags are seperate strings from non-tags.
      Each substring is preceded by numeric 2 for string and 1 for tag
Function: putsTopGlobals IndexBackNext
    syntax: puts <file-none-logic-word-string-block>
    description: Outputs to one or more file handles. Controlled by
    datatype of argument
    arg: If file! - open a file for output
    arg: If none! or logic! - close port. Stop services. True is unacceptable.
    arg: If word! - one of print or noprint
    arg: If block! or string! - output
Function: read-dirTopGlobals IndexBackNext
    syntax: read-dir <str-extension> Return block if files ending with extension
    Note: Using "*" as in "*.r" is just syntax sugar
    refinement: /only - strip extensions in return block
Function: sendmailTopGlobals IndexBack
    syntax: sendmail <email-str-block-address> <header-object> <str-blk-message>
    description: Wrapper for send/header. Insures that a seperate copy of
      address is passed, since the send mezzanine function clears the header/to
       member Header.
    Example: envelope: make system/standard/email[
               to: address ;; must be email!
               from: sender ;; must be email!
               subject: "subject here" ;; string
               ] ;; end context
    refinement: /check trap and throw errors
    refinement: /attach <f> Email-addr & default-server. See set-net documentation

Global function documentation