Establishing interaction between a process and a server process
A method for establishing interaction between a process and a server process. In one implementation, a request may be sent to a server. The request may have a pointer and a registration for an object. The object may be designated to receive responses from the server. The object may receive the pointer and an indication that the server has instantiated a server process. The process may then interact with the server process.
1 . A method for establishing interaction between a process and a server process comprising:
sending a request to a server, the request having a pointer and a registration for an object, the object being designated to receive responses from the server;
receiving at the object the pointer and an indication that the server has instantiated a server process; and
interacting with the server process.
2 . The method of claim 1 , wherein the object is an asynchronous callback function.
3 . The method of claim 1 , further comprising unmarshaling the pointer at the object.
4 . The method of claim 1 , further comprising marshaling the pointer to a controlling object.
5 . The method of claim 4 , further comprising forwarding a notification that the server has instantiated a server process to the controlling object.
6 . The method of claim 4 , further comprising:
unmarshaling the pointer at the object; and
forwarding a notification that the server has instantiated a server process to the controlling object using information contained in the unmarshaled pointer.
7 . The method of claim 4 , wherein the pointer comprises an address and a pre-determined thread identifier of the controlling object.
8 . The method of claim 7 , further comprising sending a notification to the controlling object using the pre-determined thread identifier.
9 . A computer system, comprising:
a processor; and
a memory comprising program instructions executable by the processor to:
send a request to a server to instantiate a server process;
receive a response from the server process via an asynchronous callback function; and
interact with the server process.
10 . The computer system of claim 9 , wherein the memory further comprises program instructions executable by the processor to marshal a pointer to a controlling object.
11 . The computer system of claim 10 , wherein the pointer comprises an address and a pre-determined thread identifier of the controlling object.
12 . The computer system of claim 11 , wherein the asynchronous callback function receives the response from the server on a thread other than a pre-determined thread indicated by the pre-determined thread identifier of the controlling object.
13 . The computer system of claim 11 , wherein the memory further comprises program instructions executable by the processor to unmarshal the pointer at the asynchronous callback function.
14 . The computer system of claim 12 , wherein the memory further comprises program instructions executable by the processor to send a notification to the controlling object on the pre-determined thread.
15 . A computer-readable medium having stored thereon computer-executable instructions which, when executed by a computer, cause the computer to:
marshal a pointer to a controlling object;
send a request to a server, the request having the pointer;
receive an indication that the server has instantiated a server process and the pointer;
send a notification that the server has instantiated the server process to the controlling object; and
interact with the server process.
16 . The computer-readable medium of claim 15 , further comprising computer-executable instructions which, when executed by a computer, cause the computer to register an object with the server, the object being designated to receive responses from the server.
17 . The computer-readable medium of claim 16 , further comprising computer-executable instructions which, when executed by a computer, cause the computer to unmarshal the pointer at the object.
18 . The computer-readable medium of claim 16 , wherein the object is an asynchronous callback function.
19 . The computer-readable medium of claim 15 , wherein the pointer comprises an address and a pre-determined thread identifier of the controlling object.
20 . The computer-readable medium of claim 15 , further comprising sending the notification to the controlling object using a pre-determined thread indicated by the predetermined thread identifier of the controlling object.