lib: make RegisterInterestAndType distinctly different from RegisterInterest
commitc85fd76fb3fd68f8f51003d3a389ef1b36cdf64e
authorChris Frey <cdfrey@foursquare.net>
Fri, 5 Oct 2012 01:28:28 +0000 (4 21:28 -0400)
committerChris Frey <cdfrey@foursquare.net>
Fri, 5 Apr 2013 21:24:26 +0000 (5 17:24 -0400)
treeaad274cb61454468ca3a1393cad93c727d8d85ed
parent944ec96d89a475b7c1a4dc9bd0ae72acdf987952
lib: make RegisterInterestAndType distinctly different from RegisterInterest

I didn't like exposing RegisterInterest() with a type argument as
the default option, so I modified things a bit and added comments.

Socket::SyncSend() really needs both data and sequence packets in order
to function, so this entire API is really only for the socket opening
race condition.

See the mailing list thread from 2012, with Toby Gray adding WinCE support,
for how this fix was done.
src/router.cc
src/router.h
src/socket.cc