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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -