Listen TCP socket "forever"

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ulala099
Forum Newbie
Posts: 9
Joined: Sat Jun 14, 2008 11:19 am

Listen TCP socket "forever"

Post by ulala099 »

Hi,
I need to listen to few TCP sockets for application responses forever. I wrote the socket conneciton program but can't be able to run that forever. When I execute that using SSH and exit from SSH then it stops executing. Also I want to run that when the server starts running.

Please suggest me how i can do it efficiently.

Thanks in advance.
Post Reply