Article delegate-en/1151 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A1149@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: still problems with INETD
15 May 2001 17:15:55 GMT feedback@delegate.org (Yutaka Sato)


On 05/15/01(17:07) you "davy_vs" <ppucabdyi-ufvkzts3g23r.ml@ml.delegate.org> wrote
in <_A1149@delegate-en.ML_>
 |I still keep becoming the same result as therefore.
 |I typ the following: delegated INETD="8099 stream tcp - - /home/davy/test1 
 |test1"
 |test1 is a small C program.
 |
 |I want to run this C program on port 8099 with a netscape browser.
 |But when I type: http://localhost:8099
 |I keeps giving the error message:
 |
 |*** Protocol Mismatch ***
 | You are accessing the Delegate server 127.0.0.1:8099
 | from a client software of *HTTP* protocol.
 | But this DeleGate is for clients of *exec* protocol.
 | If you inted to control this DeleGate server, see here.
 |
 |And I have put in the extra patch in admin.c that you have written in your 
 |last mail.
 |
 |What am i still doing wrong?

Sorry but I can't believe that you did the patch for admin.c:daemonControl()
which will modify the function like this:

>daemonControl(Conn,fromC,tc,timeout)
...
>       if( iSERVER_PROTO[0] == 0
>        || streq(iSERVER_PROTO,"http")
>        || streq(iSERVER_PROTO,"https")
>        || streq(iSERVER_PROTO,"tcprelay")
!        || streq(iSERVER_PROTO,"exec")
>       )
>               return 0;
...
>       if( !HTTP_toMyself(Conn,me,req) ){
...
>               fprintf(tc,"But this DeleGate is for clients of ");
>               fprintf(tc,"<B>%s</B> protocol.\r\n",iSERVER_PROTO);

The message "But this DeleGate ... *exec* protocol" shows that
"iSERVER_PROTO" variable is set with value "exec", but this cannot be
happen because the daemonControl() function, modified with the patch,
will return (0) before executing the code when "iSERVER_PROTO" is "exec".

Cheers,
Yutaka
--
  @ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
 ( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V