meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

peerhood:client [2011/09/02 12:05] (current)
Line 1: Line 1:
 +====== 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)