func RPCListenAsync(doneChan chan bool, rpc1 *OpencxAuctionRPC, host string, port uint16) {
	var err error

	logging.Infof("Registering RPC API...")
	// Register rpc
	if err = rpc.Register(rpc1); err != nil {
		logging.Fatalf("Error registering RPC Interface:\n%s", err)
	}

	logging.Infof("Starting RPC Server")
	// Start RPC Server
	serverAddr := net.JoinHostPort(host, fmt.Sprintf("%d", port))
	var listener net.Listener
	if listener, err = net.Listen("tcp", serverAddr); err != nil {
		logging.Fatal("listen error:", err)
	}
	logging.Infof("Running RPC server on %s\n", listener.Addr().String())

	go rpc.Accept(listener)

	OffButtonCloseListener(rpc1, listener)
	doneChan <- true
	return
}
// RPCListenAsync listens on socket host and port
RPCListenAsync listens on socket host and port
// RPCListenAsync listens on socket host and port
func RPCListenAsync(doneChan chan bool, rpc1 *OpencxAuctionRPC, host string, port uint16) {
	var err error
	logging.Infof("Registering RPC API...")
	if err = rpc.Register(rpc1); err != nil {
		logging.Fatalf("Error registering RPC Interface:\n%s", err)
	}
	logging.Infof("Starting RPC Server")
	serverAddr := net.JoinHostPort(host, fmt.Sprintf("%d", port))
	var listener net.Listener
	if listener, err = net.Listen("tcp", serverAddr); err != nil {
		logging.Fatal("listen error:", err)
	}
	logging.Infof("Running RPC server on %s\n", listener.Addr().String())
	go rpc.Accept(listener)
	OffButtonCloseListener(rpc1, listener)
	doneChan <- true
	return
}
func RPCListenAsync ( doneChan chan bool , rpc1 * OpencxAuctionRPC , host string , port uint16 ) { var err error logging . Infof ( " " ) if err = rpc . Register ( rpc1 ) ; err != nil { logging . Fatalf ( " \n " , err ) } logging . Infof ( " " ) serverAddr := net . JoinHostPort ( host , fmt . Sprintf ( " " , port ) ) var listener net . Listener if listener , err = net . Listen ( " " , serverAddr ) ; err != nil { logging . Fatal ( " " , err ) } logging . Infof ( " \n " , listener . Addr ( ) . String ( ) ) go rpc . Accept ( listener ) OffButtonCloseListener ( rpc1 , listener ) doneChan <- true return }
RPCListenAsync listens on socket host and port
RPCListenAsync listens on socket host and port
// Register rpc // Start RPC Server