Class ::nntp::Session

::nntp::Session[i] create ... \
           [ -debug:int,slot=::nntp::Session::slot::debug (default "1") ] \
           [ -port:int,slot=::nntp::Session::slot::port,required port:int,slot=::nntp::Session::slot::port,required ] \
           [ -server:required server:required ]

Support for NNTP session. In essence: 1) login 2) run some commands 3) logout
Defined in packages/xowiki/tcl/nntp-procs.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nx::Object[i]

Methods (to be applied on the object)

  • refresh (scripted, public)

     nntp::Session[i] refresh [ -server server ] [ -port port ] \
        [ -group group ]

    Refresh articles in the database with messages from the NNTP news server. ns_section ns/server/${server}/acs/nntp { ns_param NttpUser gustafn ns_param NttpPassword isxqsomzp } ad_schedule_proc -thread t 5m ::nntp::Session refresh

    Switches:
    -server
    (defaults to "news.eternal-september.org") (optional)
    -port
    (defaults to "119") (optional)
    -group
    (defaults to "comp.lang.tcl") (optional)

    Partial Call Graph (max 5 caller/called nodes):
    %3

    Testcases:
    No testcase defined.

Methods (to be applied on instances)

  • destroy (scripted, public)

     <instance of nntp::Session[i]> destroy

    Log-out from the session and destroy the session object.

    Partial Call Graph (max 5 caller/called nodes):
    %3

    Testcases:
    No testcase defined.
  • group (scripted, public)

     <instance of nntp::Session[i]> group name

    update all entries from the specified group

    Parameters:
    name

    Partial Call Graph (max 5 caller/called nodes):
    %3

    Testcases:
    No testcase defined.
  • login (scripted, public)

     <instance of nntp::Session[i]> login user password

    Log-in with the provided credentials

    Parameters:
    user
    password

    Partial Call Graph (max 5 caller/called nodes):
    %3

    Testcases:
    No testcase defined.