--------------------- PatchSet 6514 Date: 2008/01/15 19:15:32 Author: chtsanti Branch: async-calls Tag: (none) Log: Add a comm_accept function which takes an AsyncCall as argument Members: src/comm.cc:1.81.4.17->1.81.4.18 Index: squid3/src/comm.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/comm.cc,v retrieving revision 1.81.4.17 retrieving revision 1.81.4.18 diff -u -r1.81.4.17 -r1.81.4.18 --- squid3/src/comm.cc 5 Jan 2008 21:25:44 -0000 1.81.4.17 +++ squid3/src/comm.cc 15 Jan 2008 19:15:32 -0000 1.81.4.18 @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.81.4.17 2008/01/05 21:25:44 chtsanti Exp $ + * $Id: comm.cc,v 1.81.4.18 2008/01/15 19:15:32 chtsanti Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -2037,6 +2037,14 @@ fdc_table[fd].subscribe(call); } +void +comm_accept(int fd, AsyncCall::Pointer &call) { + debugs(5, 5, "comm_accept: FD " << fd << " AsyncCall: " << call); + assert(isOpen(fd)); + + fdc_table[fd].subscribe(call); +} + // Called when somebody wants to be notified when our socket accepts new // connection. We do not probe the FD until there is such interest. void