MCPcopy Create free account
hub / github.com/CPChain/chain / stopIPC

Method stopIPC

node/node.go:315–326  ·  view source on GitHub ↗

stopIPC terminates the IPC RPC endpoint.

()

Source from the content-addressed store, hash-verified

313
314// stopIPC terminates the IPC RPC endpoint.
315func (n *Node) stopIPC() {
316 if n.ipcListener != nil {
317 n.ipcListener.Close()
318 n.ipcListener = nil
319
320 n.log.Info("IPC endpoint closed", "endpoint", n.ipcEndpoint)
321 }
322 if n.ipcHandler != nil {
323 n.ipcHandler.Stop()
324 n.ipcHandler = nil
325 }
326}
327
328// startHTTP initializes and starts the HTTP RPC endpoint.
329func (n *Node) startHTTP(endpoint string, apis []rpc.API, modules []string, cors []string, vhosts []string) error {

Callers 2

startRPCMethod · 0.95
stopRPCMethod · 0.95

Calls 3

CloseMethod · 0.65
InfoMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected