[BACK]Return to httpd-asir.sm1 CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / Doc

Diff for /OpenXM/src/kan96xx/Doc/httpd-asir.sm1 between version 1.3 and 1.4

version 1.3, 2001/04/21 08:18:03 version 1.4, 2001/04/21 11:16:30
Line 1 
Line 1 
 %% $OpenXM: OpenXM/src/kan96xx/Doc/httpd-asir.sm1,v 1.2 2001/04/21 06:38:37 takayama Exp $  %% $OpenXM: OpenXM/src/kan96xx/Doc/httpd-asir.sm1,v 1.3 2001/04/21 08:18:03 takayama Exp $
 %% http server by sm1  %% http server by sm1
   
 /httpd.port 1200 def  /httpd.port 1200 def
   /httpd.initialization
   %% Put initialization codes here.
    [
     ("Risa/Asir web version 0.80. "+
      " Risa/Asir oxasir version "+rtostr(version());)
    ] cat
   def
 [(parse) (oxasir.sm1) pushfile] extension  [(parse) (oxasir.sm1) pushfile] extension
 (oxasir.started) boundp {  (oxasir.started) boundp {
 } {  } {
Line 42 
Line 49 
 } def  } def
   
 /httpd {  /httpd {
   /httpd.serial 1 def    /httpd.serial 0 def
   /httpd.history [ ] def    /httpd.history [ ] def
   {    {
     httpd_startserver ;      httpd_startserver ;
Line 57 
Line 64 
   [/in-httpd /httpd.com.old /ff /httpd.com /httpd.result    [/in-httpd /httpd.com.old /ff /httpd.com /httpd.result
   ] pushVariables    ] pushVariables
   [    [
   (httpd:sm1 is ready) message  
   {    {
    /httpd.com.old ( ) def     /httpd.com.old ( ) def
    [(sm1.socket) (select) [server.fd 0 get -1]] extension     [(sm1.socket) (select) [server.fd 0 get -1]] extension
 %%                                          wait for ever  %%                                          wait for ever
    {  
         [(sm1.socket) (read) [server.fd 0 get ]] extension /ff set          [(sm1.socket) (read) [server.fd 0 get ]] extension /ff set
         ff length 0 eq {          ff length 0 eq {
            (connection is closed.) message             (connection is closed.) message
         }          }
         ff (quit) eq          {
         { (We exit the function httpd) message exit }  
         { %% [(SigIgn) 0] system_variable  
           (------------  start ----------------------) message            (------------  start ----------------------) message
              ff message               ff message
           (-----------------------------------------) message            (-----------------------------------------) message
Line 77 
Line 80 
              httpd.com message               httpd.com message
           (------------  end ----------------------) message            (------------  end ----------------------) message
           (   ) message            (   ) message
             httpd.serial 0 eq {
               /httpd.com  httpd.initialization def
             } { } ifelse
           httpd.com metaCommand {            httpd.com metaCommand {
             /httpd.history httpd.history httpd.com append def              /httpd.history httpd.history httpd.com append def
             oxasir.ccc              oxasir.ccc
Line 88 
Line 94 
             httpd.result message              httpd.result message
             (----------------------------------) message              (----------------------------------) message
             (  ) message              (  ) message
             [(<title> asirweb </title> )              [httpd.serial 0 eq { } {
              (<font color="blue"> Input-) httpd.serial toString                  (<title> asirweb </title> )
               (: </font> )                  (<font color="blue"> Input-) httpd.serial toString
              (<pre> ) httpd.com (</pre>) (<br>)                   (: </font> )
                   (<pre> ) httpd.com (</pre>) (<br>)
                 } ifelse
              (<font color="green"> Output-) httpd.serial toString               (<font color="green"> Output-) httpd.serial toString
              (: </font> )               (: </font> )
              (<pre>) httpd.result (</pre>)               (<pre>) httpd.result (</pre>)
             ] cat              ] cat
             send-page-3  exit              send-page-3  exit
           } { } ifelse            } { } ifelse  %% metaCommand
         } ifelse          } ifelse
    }  
    {  } ifelse  
   } loop    } loop
   ] pop    ] pop
   popVariables    popVariables
Line 168  def
Line 174  def
 /httpd.asirman.index  /httpd.asirman.index
   ("http://www.math.sci.kobe-u.ac.jp/OpenXM/1.1.3/doc/asir2000/html-jp/man_262.html#SEC262")    ("http://www.math.sci.kobe-u.ac.jp/OpenXM/1.1.3/doc/asir2000/html-jp/man_262.html#SEC262")
 def  def
   /httpd.asir.intro
      ("http://www.math.sci.kobe-u.ac.jp/~taka/asir-book-html/main")
   def
 /send-menu-1 {  /send-menu-1 {
   
     (FILE:) sendln
   [$<a href="http://localhost:$ httpd.port toString    [$<a href="http://localhost:$ httpd.port toString
    $/?msg=httpdAsirMeta+quit"> QUIT </a>, $     $/?msg=httpdAsirMeta+quit"> Shutdown the asir server. </a>, $
   ] cat sendln    ] cat sendln
     ( <spacer type=horizontal size=80> ) sendln
   
     (HELP:) sendln
   [(<font color="red">    [(<font color="red">
     <a href=) httpd.asirman (> AsirManual (Ja) </a> </font>, )] cat sendln      <a href=) httpd.asirman ( > AsirManual (Ja) </a> </font>, )] cat sendln
   [(<font color="purple">    [(<font color="purple">
     <a href=) httpd.asirman.index (> Index (Ja) </a> </font>, )] cat sendln      <a href=) httpd.asirman.index ( > Index (Ja) </a> </font>, )] cat sendln
   (<font color="blue">    [(<font color="blue">
    <a href="http://www.math.sci.kobe-u.ac.jp/~taka/asir-book-html/main"> Intro (Ja) </a> </font>, ) sendln      <a href=) httpd.asir.intro ( > Intro (Ja) </a> </font>, )] cat sendln
 } def  } def
   
 /stopclient {  /stopclient {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>