The IPC demo

The demo in the directory samples/ipc shows how processes may easily talks to each other synchronously (i.e. when A sends a message to B, A waits for an answer). If you start server, then client, a new window should appear on top of the server window, which represents the connection between server and client. Quitting the client causes the connection to be broken and this window to disappear.

To illustrate 'hot linking', click on the server's listbox. This sends an advise message to the client, telling it to update its own listbox. The reverse is not true, however.

A client may request information from the server. Select the Request menu item from the client's File menu. The window which pops up is created by the client and contains a message that the server sent back.

Selecting Execute from the client's menu makes the server pop up a window. Normally this would execute some command that the client wishes the server to run.

The Poke menu item sends a poke message to the server; normally this would insert some data into the server's memory.

Interprocess communication in wxWindows uses a subset of DDE (Dynamic Data Exchange) which is Microsoft's standard for low-level IPC under Windows. wxWindows gives you DDE under UNIX as well as Windows, and makes it easier to program into the bargain by using an intuitive object-oriented model of communication.