sockets - Is it possible for multiple unrelated processes to use the same UDP port? (Linux) -


i have linux program sends & receives udp packets (it interacting various remote machines according protocol). "inject" additional udp packets second program return address ip/port used main program.

for example, imagine main program sending "ping" style udp packets various remote hosts, , send "pong" packets. injector program send ping somewhere, , have main program receive pong. (the main program wouldn't expecting pong, because didn't send out ping, that's ok.)

a complex way have main program accept injected packets local pipe or , send them out. easier if injector set "from" address on sendto() packet. (i don't want injector steal packets meant main program. injector short-lived, if bound main program's port, theoretically system deliver pongs instead of main program?)


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -