Re: [Tcpick-project] Question about multiple streams
Status: Beta
Brought to you by:
duskdruid
From: Ian S. <ro...@ma...> - 2011-02-07 09:13:16
|
Chuck Lane wrote: > I'm using a php script to parse input coming from tcppick. I've figured > out how to get it working with one stream, however if I have multiple > incoming streams on the same port I can't figure it out. > > Right now i'm using something like > > tcpick -bR "port xxx" | php5 ./myscript.php > > and reading the input in from stdin. > > Is there any way that I can make tcppick launch multiple instances of my > script depending on how many connections are coming in > each one is on the same dest port but a different source port if that helps > I don't think you can do it with that form. You can get it to dump files - and then open them. Something like tcpick -a -i wlan0 -wR -F2 "port 8100"& You could also in principle in myscript.php, launch anotrher copy of tcpick when you first see data. This has a race condition - if multiple connections come in, one will be missed, and it won't trigger the next file till the first one sends data. |