예제 #1
0
func respondeToRequest(dest string, reqId string, status string) {
	network.Send(dest, status, reqId, network.GetMyAddress(), true)
	log.Printf("Response to request %s sent to %s\n", reqId, dest)
}
예제 #2
0
func sendReqToDest(reqID string, dest string) {
	go network.Send(dest, "do", reqID, network.GetMyAddress(), false)
	log.Printf("Request %s sent to %s\n", reqID, dest)
}