Generalise RPC connection handling code to allow more listening sockets
Generalise RPC connection handling code to allow more listening sockets

Using this modification it should be relatively easy to, at a later
time, listen on multiple addresses (even Unix domain sockets should be
possible).

Signed-off-by: Giel van Schijndel <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@mortis.eu>

dobbscoin/dobbscoin-source,domob1812/crowncoin,wiggi/fairbrix-0.6.3,Infernoman/crowncoin,domob1812/crowncoin,syscoin/syscoin,syscoin/syscoin,wiggi/fairbrix-0.6.3,Earlz/dobbscoin-source,wiggi/fairbrix-0.6.3,Crowndev/crowncoin,Infernoman/crowncoin,syscoin/syscoin,syscoin/syscoin,domob1812/crowncoin,Infernoman/crowncoin,syscoin/syscoin,Infernoman/crowncoin,Earlz/dobbscoin-source,Crowndev/crowncoin,Crowndev/crowncoin,syscoin/syscoin,domob1812/crowncoin,Crowndev/crowncoin,Infernoman/crowncoin,dobbscoin/dobbscoin-source,Crowndev/crowncoin,domob1812/crowncoin,dobbscoin/dobbscoin-source,dobbscoin/dobbscoin-source,Earlz/dobbscoin-source,domob1812/crowncoin,syscoin/syscoin,dobbscoin/dobbscoin-source,Earlz/dobbscoin-source,Earlz/dobbscoin-source,wiggi/fairbrix-0.6.3,Earlz/dobbscoin-source,Infernoman/crowncoin,dobbscoin/dobbscoin-source,syscoin/syscoin,wiggi/fairbrix-0.6.3,Crowndev/crowncoin