2010/5/3 Islam Hegazy <[email protected]>: > Hi all, > > I am trying to implement CTP in ns2. Now I am rewriting the code of the > ForwardingEngine 'CtpForwardingEngineP.nc' and 'CtpP.nc' into ns2. However, > I don't fully understand how the code flows. > 1) What is the difference between the SendQueue and MessagePool?
MessagePool is the buffer. Queue keeps track of the items in the buffer that are used. > 2) Why each client has a SendQueue size of 'number of clients + forward > counts'? What is the logic behind having a SendQueue greater than the size > of the network (number of clients 'CLIENT_COUNT')? clients is the number of collection senders on a node. > 3) In 'CtpForwardingEngineP.nc', the function 'command error_t > Send.send[uint8_t client](message_t* msg, uint8_t len)': what does it mean > send[uint8_t client]? Does it mean to pass the id of the client who is > sending the packet? I understand that the code is implemented per node, so > for example for node 10 send[10] is always called. Are my assumptions > correct or am I missing something? Client is a collection sender, not a node id. - om_p _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
