device reading in user-space TUX modules

syun <[email protected]>
Newsgroups gmane.network.tux
Message-ID <[email protected]>
Hello.

I tried "fifo" to read device data in the TUX module.
But the server does not serve data. It just returned
<HTML> Forbidden </HTML>.

When I made another process to make a file (just reading 
data from the character device and making a file), 
TUX module can serve the data from the file using
TUX_ACTION_GET_OBJECT and TUX_ACTION_SEND_OBJECT.

I think TUX_ACTION_GET_OBJECT is not designed to handle
device file and fifo. 

I guess if I add a code so that TUX can read a data 
from device and write into memory or file, 
TUX_ACTION_SEND_OBJECT or TUX_ACTION_SEND_BUFFER can serve
the data. 

But I do not know how to read data from a character device
in TUX or TUX module.

I need help ..

Thank you.

>> > I want to open a character device and read it so that
>> > my TUX module may serve data from the device in TUX modules.
>> > But "open()" always fails.
>> >
>> > In the case of a file, open() fails (No such file or directory)
>> > but tux(TUX_ACTION_READ_OBJECT, req) can read file into memory.
>> > 
>> > I want to know how to read data from the device.
>> > I want to know better way about file.
>>
>> Why don't you just
>>
>> mkfifo asdf
>> cat /dev/xxx | asdf&
>> then run tux to read asdf
>
>Thank you. surely using fifo can be one solution.
>I must know the limitation of TUX modules :(
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.