foxsi / foxsi-4matter

Code for FOXSI-4 formatter.
https://foxsi.umn.edu/
1 stars 3 forks source link

UDP Redirect Script #22

Closed KriSun95 closed 1 year ago

KriSun95 commented 1 year ago

Since you can't have two processes sending/receiving packets from the same port I've duplicated then edited util/udpecho.py to redirect the data packet coming from port number X to port number X+1 instead of just echoing back to port X.

This means data packets can be sent from port X on one machine (A) to another machine (B) which is running util/udpecho.py. We can then monitor port X+1 on machine A for the returning data packet with whatever process we want.