[Xorp-cvs] XORP cvs commit: xorp/libcomm
Pavlin Radoslavov
pavlin@icir.org
Tue, 26 Jul 2005 09:58:49 -0700
> CVSROOT: /usr/local/www/data/cvs
> Module name: xorp
> Changes by: bms@xorpc.icir.org 2005-07-26 12:12:19 UTC
>
> XORP CVS repository
>
>
> Modified files:
> libcomm comm_api.h comm_sock.c
>
> Log message:
> Diff reduction with Windows branch:
>
> Introduce a global switch _comm_squelch_accept. If this is set to a
> non-zero value, then the libcomm library will clear WinSock event
> notification masks on sockets during accept and close operations.
>
> This is done by calling WSAEventSelect() with empty arguments, which is
> documented to clear such masks.
>
> The reason for doing this is to prevent the WinSock infrastructure
> from signalling event conditions before clients of EventLoop have had
> a chance to wire up I/O event callbacks to service them.
Is the _comm_squelch_accept flag suppose to be used/set externally
(outside file comm_sock.c), etc?
If no, then shouldn't it be declared as "static"?
Pavlin