- 18 Sep, 2001 1 commit
-
-
exchanges between the library and the server. * mailbox2/pop3/*: Add debug prints in all. * mailbox2/sdebug.c: New entry. * mailbox2/debug.c: New entry. * mailbox2/Makefile.am: Add debug object * mailbox2/include/mailutils/Makefile.am: Add debug.h * mailbox2/include/mailutils/sys/Makefile.am: Add debug.h and sdebug.h * mailbox2/include/mailutils/debug.h: New file. * mailbox2/include/mailutils/sys/debug.h: New file. * mailbox2/include/mailutils/sys/sdebug.h: New file. * mailbox2/fdstream.c: Bug in fdstream do not call FD_SET if the file descriptor is -1; * mailbox2/tcpstream.c: Bug in fdstream do not call FD_SET if the file descriptor is -1;
Alain Magloire authored
-
- 09 Sep, 2001 1 commit
-
-
object was that select() was not cover, meaning it was not possible to check if a stream was {read,write} ready. The old was to get the fd (stream_get_fd()) and do the select. Providing, stream_is_readready (stream_t, int timeout); stream_is_writeready (stream_t, int timeout); stream_is_exceptionpending (stream_t, int timeout); stream_is_open (stream_t); Takes care of it. It will work specially for tcp stream. * mailbox2/stream.c: New functions for the select calls: (stream_is_readready): New function. (stream_is_writeready): New function.(stream_t, int timeout); (stream_is_exceptionpending): New function. (stream_is_open): New function. * mailbox2/bstream.c (_bs_readline): Bug was truncating the string to early. (_bs_is_readready): New file. (_bs_is_writeready): New file. (_bs_is_exceptionpending): New file. (_bs_is_open): New file. * mailbox2/fstream.c: stubs for the select functions. * mailbox2/memstream.c: stubs for the select functions. * mailbox2/mapstream.c: stubs for the select functions. * mailbox2/tcpstream.c: stubs for the select functions. * mailbox2/include/mailutils/stream.h: Adjust the prototypes * mailbox2/include/mailutils/sys/stream.h: Adjust the prototypes It is better not to put threading (Pthread) code in the low level API. But instead in mailbox_t framework, where it can be control. * mailbox2/include/mailutils/pop3.h: Adjust the prototypes. * mailbox2/pop3/*.c: Remove threading code.
Alain Magloire authored
-
- 02 Jul, 2001 1 commit
-
-
The problem is monitor.h, we will probably end up doing a monitor.h.in and set at compile time if threading is enable or not.
Alain Magloire authored
-
- 09 Jun, 2001 1 commit
-
-