I'm somewhat familiar with the various methods of performing non-blocking IO within PHP, but the answer to this question seems to be eluding me. Let me describe what I am attempting to do:
I would like to have a static class called "Monitor" that I can throw various messages at. The class should then connect to an external TCP server and send those messages along - But I do not want to wait for that to happen. Everything, from the initial connection to the external server through the sending of the message should happen asynchronously, while my script has already moved along to other things.
Is this possible? I am currently attempting to use fsockopen(), stream_set_blocking(), etc...