Could you be a bit more specific... I must admit that I don't get you!
now i connect with a client and want to start script B by giving the socket address to connect script B with the client without disconnect!
What do you mean?
Process A of script A starts Process B Script B, I got that... Still if A was started by a HTTP request (from who/whatever) and B is started by passthru; I see one socket only.
Anyhow, what if coming after that? you want some client to "take over" the process B of script B using some http socket? right?
Cause that is not possible (by any mean, java, C or whatever I think) since the socket is a link between one IP one port <=> one other IP some port. How could you use the same socket for yet another "socket" ?
To that comes that php is processed based, not thread based, hence you couldn't let some other thread take the socket over...
But again, am I getting you right?
Could you be a bit more explicit?