]> git.ipfire.org Git - thirdparty/squid.git/commit
Add FdeCbParams parameter object to CommCalls API.
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 4 Dec 2011 05:43:42 +0000 (22:43 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 4 Dec 2011 05:43:42 +0000 (22:43 -0700)
commita17bf80622f8f80d0ce7c0d173ea032a42a520b5
treed87da908730fed53b643c2e38247548716444dca
parent37dedc58e276153c2afeab768ced3694cac6d7e8
Add FdeCbParams parameter object to CommCalls API.

The problem:
  CommCalls API functionality is conflated with comm operational calls
created to do general FD handling (FD as pipe handle, FD as disk handle,
FD as pointer into the fd_table structure). Sometimes because they do
operations mirroring comm handlers and also use FD.  None of this actually
requires the CommCalls layer to be involved though. The Comm::Connection
objects which CommCall TCP handlers pass around is also very inappropriate
for these FD types.

This adds FdeCbParams to CommCalls infrastructure, for use internally and
"lower" than comm API to pass around raw FD values. This should be avoided
on TCP socket FD, but may be used by callers needing FD where
Comm::Connection is inappropriate.
src/CommCalls.cc
src/CommCalls.h
src/comm.cc