Jump to content

pass resource to second script


ratcateme

Recommended Posts

i want to create a php script that will listen and accept connections on a port then pass the connection onto another script to keep the main script just handling incoming connections and not being tied up until the connection ends.

i have made a script that listens on port 9000 and waits until a connection is received then it will do stuff. the only problem with this is that it can only have on connection at a time and i need multiple connections at the same time.

 

Scott.

Link to comment
https://forums.phpfreaks.com/topic/97551-pass-resource-to-second-script/
Share on other sites

any ideas?

at the moment i am using socket_accept() to accept the connection is there another way that will accept multiple connections because my current understanding of socket_accept() it will only take one connection at a time.

 

Scott.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.