Hi,
i'm writing an app which used to auto test AT commands...
i open fd with the /dev/ttyS0, and pass it to g_unix_input_stream_new
the qustion is how read the buf as line by line ?
because of the buffer size is 4K, if directly use
g_data_input_stream_read_line, it will block forever,
and then i use g_buffered_input_stream_set_buffer_size to change the
buffer size to 1 byte
it works, but it should be not efficient
and good ideas for this ?
thanks, and sorry for my bad english....
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list