[PA4] How to get a topology during initialization? #296
Answered
by
lgm9
Hyeonjoon
asked this question in
[Project Q&A] 3. Internet Layer (IP/Routing)
Answered by
lgm9
Jun 4, 2025
Replies: 1 comment 1 reply
|
You can get the # of ports by getPortCount(), and you can utilize all kind of functions like getIPAddr(), and linkcost(). |
1 reply
Answer selected by
Hyeonjoon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

You can get the # of ports by getPortCount(), and you can utilize all kind of functions like getIPAddr(), and linkcost().