MCPcopy Create free account
hub / github.com/DNAProject/DNA / Start

Method Start

p2pserver/actor/server/actor.go:47–51  ·  view source on GitHub ↗

start a actor called net_server

()

Source from the content-addressed store, hash-verified

45
46//start a actor called net_server
47func (this *P2PActor) Start() (*actor.PID, error) {
48 this.props = actor.FromProducer(func() actor.Actor { return this })
49 p2pPid, err := actor.SpawnNamed(this.props, "net_server")
50 return p2pPid, err
51}
52
53//message handler
54func (this *P2PActor) Receive(ctx actor.Context) {

Callers 2

initP2PNodeFunction · 0.95
TestP2PActorServerFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestP2PActorServerFunction · 0.76