For a p2p network to exist, nodes need to be able to communicate (make requests and respond to one another). Remember: Each node is a client and server at the same time!
Message processing implements the server-side logic needed for a node to respond to another node's request.
Since my previous update I've set up some custom message processing for discv5 + overlay events within DAS Playground, have been digging into implementing message processing to support multiple overlay subnetworks, and continued writing within Summary of DAS Playground.
Message processing allows the server side of our DASNodes to filter through the different possible message requests (services) it provides and responds to requesters appropriately.
Our overlay networks utilize Discv5's TalkReq/TalkResp message to send data to others within their respective subnetwork. These messages usually pertain to information on peers in the network (routing table) or samples that a node needs.
Timofey and Eric's simulation only deals with one overlay subnetwork (DAS) and implements a single event loop to handle all message processing. My project creates two overlay subnetworks (DAS and Secure DAS): This is the first major deviation from DAS Prototype!
I'm currently figuring out how our DASNode should handle multiple overlay networks' requests.
I may have to implement some sort of proxy, like Trin, to handle all TalkRequests + TalkResponses within the two overlay subnetworks.