From eeec88a8c41a91b3252dd29ff0e5b758f4e9e013 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Tue, 13 Jul 1999 19:38:01 +0000 Subject: [PATCH] Add a couple of control flags to sockbufs and macros to test them. --- libraries/liblber/lber-int.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libraries/liblber/lber-int.h b/libraries/liblber/lber-int.h index cb68944ede..ff5a1577eb 100644 --- a/libraries/liblber/lber-int.h +++ b/libraries/liblber/lber-int.h @@ -121,6 +121,12 @@ struct sockbuf { int sb_trans_ready:1; int sb_sec_ready:1; + /* these bits indicate if the transport layer + * needs to read or write + */ + int sb_trans_needs_read:1; + int sb_trans_needs_write:1; + int sb_fd; void *sb_iodata; /* transport-layer data pointer */ @@ -158,6 +164,10 @@ struct sockbuf { #define ber_pvt_sb_data_ready( sb ) \ (((sb)->sb_buf_ready) || ((sb)->sb_trans_ready)) #endif +#define ber_pvt_sb_needs_read( sb ) \ +((sb)->sb_trans_needs_read) +#define ber_pvt_sb_needs_write( sb ) \ +((sb)->sb_trans_needs_write) #define READBUFSIZ 8192 -- 2.39.5