I want to receive the outgoing UDP datagrams from a C++ program, and spoof the sender address of incoming datagrams; nothing more and nothing less. Is this possible with Java, or is the language too limited?
I am using Fedora by the way.
Thanks :)
EDIT: The C++ program is open source so I have full access to it's API.
EDIT 2: Fixed some bad wording.
Receiving the outgoing should be possible win WinPcap, but I don't know how to spoof incoming unless you find the address of the receiving function and call it from your program. None of this can be done from Java, as far as I know. Your best bet would probably be C#, since it's pretty similar.
What about Jpcap (http://netresearch.ics.uci.edu/kfujii/jpcap/doc/)? I happened to run into this by chance a few months ago but never knew what it really was. Can this accomplish what I need it to?
EDIT: Jpcap seems to be what I am looking for, I am going to try some of the samples out! :D