T
Tiger Hillside
I have hit a wall. I have some server side perl scripts. One of those
scripts has to send off to another server (hence the middleware
comment) and wait for a response. Then I need to get back to the
client. I don't know how to do this. I can send off the post to the
external server. And I know how to get the response back in another of
my perl scripts. But how does that script know how to get back to the
client?
Le me diagram and name things.
This is the logic flow
Client -> Me -> XS (external sever)->Me -> Client
Program wise it would be
Client ->Me Script1 -> XS
XS -> Script2 -> Client
I can't see how to get XS to come back to the same instance of
Script1, nor can I see how Script2 would know which client to send to.
I am sure this is easy, something like having a connection handle, but
I don't know what that is called or how to get it. If I had it I can
save it with Script1 and get it back with Script2, I can identify the
transaction from my perspective, but not from the servers. (This is an
Apache server if that matters.)
(I know this is not really a language issue, but I figured this would
be a good place to ask.)
Thanks much in advance.
scripts has to send off to another server (hence the middleware
comment) and wait for a response. Then I need to get back to the
client. I don't know how to do this. I can send off the post to the
external server. And I know how to get the response back in another of
my perl scripts. But how does that script know how to get back to the
client?
Le me diagram and name things.
This is the logic flow
Client -> Me -> XS (external sever)->Me -> Client
Program wise it would be
Client ->Me Script1 -> XS
XS -> Script2 -> Client
I can't see how to get XS to come back to the same instance of
Script1, nor can I see how Script2 would know which client to send to.
I am sure this is easy, something like having a connection handle, but
I don't know what that is called or how to get it. If I had it I can
save it with Script1 and get it back with Script2, I can identify the
transaction from my perspective, but not from the servers. (This is an
Apache server if that matters.)
(I know this is not really a language issue, but I figured this would
be a good place to ask.)
Thanks much in advance.