peersim學習-循環驅動:如何寫協議(1)

peersim學習-循環驅動:如何寫協議(1) 2011-08-22 10:41 循環驅動模式的協議只要繼承CDProtocol就OK了,peersim會在每一個cycle裏在每個節點上執行nextCycle()方法; 爲了獲取鄰接信息,必須配置IdleProtocol( implements Protocol, Linkable),這個協議是peersim.core中的核心代碼。 上圖是link
相關文章
相關標籤/搜索