Skip to content

Forwarding of Application Layer APP - UdpSink in OMNeT++ #983

Closed Answered by rhornig
zhangteng0526 asked this question in Q&A
Discussion options

You must be logged in to vote

(Just nitpicking: AODV is an INET example, not a base OMNeT++ example).

You should write your own UDP application module for this. Use the UdpEchoApp as an example. The only difference is that you would forward the packet to a different destination and not back to the sender. If you add a destinationAddress parameter L3AddressResolver().resolve(destinationAddress) would resolve a string based IP address (or module name) to proper L3Address that can be used by the sendTo call. (see also the UspBasicApp for examples of sending to a specific address)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zhangteng0526
Comment options

@rhornig
Comment options

Answer selected by zhangteng0526
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants