i want to create a scenario in which i have created path between nodes via manual socket connections
, i have multiple set of nodes with such connections i want to change the socket connections at run time so that these node can interact with each other
each nodes are connected via sockets as such
create sockets
bind socket
connect socket
set receive call back
( initial setup)
node1____node2____uenode1................uenode0_____node5____node6 ( 1st end to end connection)
node7____node8____uenode2................uenode3_____node9____node10 ( 2nd end to end connection )
after time t in simulation run
node7___node8____uenode2................uenode0_____node5____node6
how i can change manipulate the sockets connections at run time , anyone having any idea can share .
thank you