Sorry about delay.The logs should probably be adjusted, stat OK/NG is an apt description but may not be the best way to log, also as is the mutex lock/unlock info floods the logs, it's better commented for the time being, I am thinking about adding several log levels details managed through a compilation flag, a bit of granularity should help users get logs that are "easier" to read while still keeping the option to get more detailed output if required.
@DeViL303
Please test the payload esc0 posted in situ, let me know if you detect any perf impact or other issues.
socat -u udp-recv:18194 stdout
socat -u udp-recv:18194 stdout >>log.txt
Sorry about delay.
Seems to be no noticeable performance hit. Its way better alright, much more information. The extra lines do flood the logs a bit. Having certain stuff highlighted in different colors is great too, like if we could have green for found red for not found or something that would be one way to show more information without adding extra lines for each file. I know I can log to a txt file and search it after but its nice to have it in real time too.
BTW, on that subject, is there a command so I can see the socat log in real time but also log it to a txt file at the same time. Up to now I have only had commands to do one or the other.
AndCode:socat -u udp-recv:18194 stdout
Code:socat -u udp-recv:18194 stdout >>log.txt
socat -lu stdout udp-recv:18194,reuseaddr |tee stdout.txt