[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Why Demo work but Demo5 doesn't work?



Hi, Ingo

I load two user-space modules(Demo.tux and Demo5.tux) when I start TUX.
And I input URL http://localhost/demo.tux, Demo module works and
displays "Hello Webworld", but when I input URL
http://localhost/demo5.tux, Demo5 doesn't work since it only display 
<html><body></body></html> instead of "hello web world". Why?

I know Demo use write(req->sock, message, strlen(message)) while Demo5
use tux(TUX_ACTION_SEND_BUFFER, req) 

is this the reason for this?

Thank  you.

Liang





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []