meta data for this page
  •  

PeerHood Client

Client role and features ?

With applications using PeerHood one needs to implement ClientCallback::Notify() and ClientCallback::NewConnection()

Basic operation of client (main):

==callback = new ClientCallback== - need to be changed to allow several callbacks within one process id

peerhood = MpeerHood::GetInstance(callback)

CEngine::GetInstance(Callback)

getpid()

LoadPlugins()

engine::LoadConnections(pid)

- Factory creates connections for all plugins - Connection::Listen(pid)

engine::StartListening()

- threadstarter - select(connection)

peerhood->Init()

- Connect(deamonsocket) - Write(PH_INIT)