version 1.8, 2001/08/23 00:16:55 |
version 1.16, 2002/10/24 02:30:16 |
|
|
%% $OpenXM: OpenXM/src/kan96xx/Doc/httpd-sm1.sm1,v 1.7 2001/08/21 14:21:29 takayama Exp $ |
%% $OpenXM: OpenXM/src/kan96xx/Doc/httpd-sm1.sm1,v 1.15 2002/10/24 02:12:34 takayama Exp $ |
%% http server by sm1 |
%% http server by sm1 |
%% Note to run on the Windows (TM). |
%% Note to run on the Windows (TM). |
%% (A) You need to set IE (internet explorer) as follows: |
%% (A) You need to set IE (internet explorer) as follows: |
|
|
} { |
} { |
%% Initialize ox_sm1 |
%% Initialize ox_sm1 |
[(ostype)] extension 0 get |
[(ostype)] extension 0 get |
(windows) eq { |
sm1connectr |
[(getenv) (OSTYPE)] extension |
|
(cygwin) eq { |
|
sm1connectr %% Cygwin |
|
}{ |
|
sm1connectr_win %% Native Windows. |
|
} ifelse |
|
}{ |
|
sm1connectr %% Unix |
|
} ifelse |
|
ox.ccc oxmathcap |
ox.ccc oxmathcap |
ox.ccc oxsetmathcap |
ox.ccc oxsetmathcap |
} ifelse |
} ifelse |
|
|
%% On windows. |
%% On windows. |
[(forkExec) |
[(forkExec) |
[ |
[ |
(c:/windows/command/start) |
%%(c:/windows/command/start) |
|
ox.win.start.0 aload pop |
(iexplore) %% Starting internet explorer (TM). |
(iexplore) %% Starting internet explorer (TM). |
[(http://localhost:) httpd.port toString] cat |
[(http://localhost:) httpd.port toString] cat |
] |
] |
|
|
/httpd_action { |
/httpd_action { |
[/in-httpd /ff /httpd.com /httpd.result /sss |
[/in-httpd /ff /httpd.com /httpd.result /sss |
/sss.engine /sss.web /err /httpd.sendFile |
/sss.engine /sss.web /err /httpd.sendFile |
|
/oxserver.vname |
] pushVariables |
] pushVariables |
[ |
[ |
{ |
{ |
[(sm1.socket) (select) [httpd.server.fd 0 get -1]] extension |
[(sm1.socket) (select) [httpd.server.fd 0 get -1]] extension |
%% wait for ever |
%% wait for ever |
[(sm1.socket) (read) [httpd.server.fd 0 get ]] extension /ff set |
[(sm1.socket) (readHTTP) [httpd.server.fd 0 get ]] extension /ff set |
ff length 0 eq { |
ff tag 0 eq { |
(connection is closed.) message |
(connection is closed.) message exit |
} |
} |
{ |
{ |
(------------ start ----------------------) message |
(------------ start ----------------------) message |
|
|
( ) message |
( ) message |
httpd.serial 0 eq { |
httpd.serial 0 eq { |
/httpd.com httpd.initialization def |
/httpd.com httpd.initialization def |
|
/httpd.textarea.valid 1 def |
} { } ifelse |
} { } ifelse |
httpd.sendFile tag 0 eq { } |
httpd.sendFile tag 0 eq { } |
{ |
{ |
|
|
} ifelse |
} ifelse |
httpd.com metaCommand { |
httpd.com metaCommand { |
httpd.textarea.valid { |
httpd.textarea.valid { |
|
/oxserver.vname |
|
[Oxserver_history_variable httpd.serial toString] cat |
|
def |
ox.ccc |
ox.ccc |
[ httpd.com ] cat |
[ |
|
httpd.com |
|
( /) oxserver.vname ( set ) |
|
oxserver.vname ( ) |
|
] cat |
oxexecutestring ; |
oxexecutestring ; |
}{ |
}{ |
send-page-warning exit |
send-page-warning exit |