jubatus/jubatus — pull request #212 by y-oda-oni-juba (2012-12-21 05:23:26+00:00)
Title: issue #201: rpc_server: separate listen and starting rpc-threads

issue #201

rpc_server::serv() replaced with listen(), start(). And stop() added.

void listen(port, bind_address)
// Create service socket and listen. if fail to listen, raise exceptions ( mp::system_error )
// This function return immediately.

void start( nthreads, no_hang = false )
// start RPC threads. If fail to start threads, raise exceptions ( mp::pthread_error ).
// If no_hang == true, This function return immediately. Otherwise never return.

void stop()
// stop all RPC threads. If no thread running, nothing is done.
// This function wait all threads stop

*ATTENTION:*
jubatus-msgpack-rpc needs update to build.