Пример #1
0
func meshageInit(host string, namespace string, degree, msaTimeout uint, port int) {
	meshageNode, meshageMessages = meshage.NewNode(host, namespace, degree, port, version.Revision)

	meshageNode.Snoop = meshageSnooper

	meshageNode.SetMSATimeout(msaTimeout)

	go meshageMux()
	go meshageHandler()
	go meshageVMLauncher()

	iomeshageInit(meshageNode)

	// wait a bit to let things settle
	time.Sleep(500 * time.Millisecond)
}
Пример #2
0
func meshageInit(host string, namespace string, degree uint, port int) {
	meshageNode, meshageMessages = meshage.NewNode(host, namespace, degree, port)

	meshageCommandChan = make(chan *meshage.Message, 1024)
	meshageResponseChan = make(chan *meshage.Message, 1024)

	meshageTimeout = time.Duration(MESH_TIMEOUT_DEFAULT) * time.Second

	meshageNode.Snoop = meshageSnooper

	meshageNode.SetMSATimeout(uint(*f_msaTimeout))

	go meshageMux()
	go meshageHandler()

	iomeshageInit(meshageNode)

	// wait a bit to let things settle
	time.Sleep(500 * time.Millisecond)
}