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?
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')?
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?

Regards
Islam Hegazy
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to