need for help

28 views
Skip to first unread message

هديل نوري سعد علي جريو مصطفى

unread,
Jun 13, 2023, 5:32:39 PM6/13/23
to CupCarbon Forum
hi, im trying to do the following

atget id id
loop
data p id "request"
send p
delay 1000
receive rp  
data p id "mydata"
send p
delay 1000


// this code did not work until I erase the receive  command. it cant send and receive at same time !!! could you help with explanation please

boun...@gmail.com

unread,
Oct 19, 2023, 4:25:04 PM10/19/23
to CupCarbon Forum
The receive command is blocking as a read command in Java. It means that the instructions coming after the receive command will not be executed until the node receives a message from the other nodes.
Reply all
Reply to author
Forward
0 new messages