Local Inter-Process Communication: Difference between revisions

Content deleted Content added
Linked to Native API
Line 2:
 
== Implementation ==
LPC is implemented using kernel "port" objects. A server process first creates a port object with a well known name, and waits for clients to connect. A client process then connects by opening that port and sending a connect message. If the server accepts the connection, a new unnamed port object is created for the connection. Port objects are secuablesecurable kernel objects that allow a process to identify the process on the other side of the connection.
 
For short messages (less than 304 bytes) the kernel copies the message buffers between processes. Longer messages require the creation of a shared memory section to transfer data, which the LPC service maps between the processes instead.