in reply to Re: Socket Keep Alive
in thread Socket Keep Alive
Hello again, sorry for the first incomprensible question. I will try to make it clearer:
basically I am running a peer 2 peer tv application that creates a web server on the 'localhost'. To this a media player connects in order to retrieve the streaming. If at the same time I connect my perl application to the 'localhost' I can also retrieve the data. So far so good!
Now the problem arises when I want to keep a persistant connection to 'localhost' from my perl application in order to 'sniff' the data, even when my p2p app changes channels (meaning opens a new connection on the same port at localhost).
With the code I showed you what happen is that both applications crash.
Do you have any idea on how to build the application in order to have a persistant connection allowing also my p2p app to connect to that same port and work properly?
Hope you can help and thanks for your patience.