Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 3.2

COLUMN

IPC Sockets

Issue: 3.2 (November/December 2004)
Author: Didier Barbas
Author Bio: Didier has been a dilettante programmer and linguist for more than 20 years. Unusual for a Frenchman, he speaks 11 languages, including Korean and PowerPC machine-language.
Article Description: No description available.
Article Length (in bytes): 8,019
Starting Page Number: 46
Article Number: 3222
Resource File(s):

Download Icon 3222.zip Updated: 2013-03-11 19:07:58

Related Link(s): None

Excerpt of article text...

One of the features introduced in RB 5.5 is the InterProcess Communication Socket, aka the IPC Socket. Originally a Unix feature, it is now also available on Windows, which makes it a good cross-platform solution. IPC sockets are also faster than normal sockets -- slightly on Unix systems and quite a bit on Windows, at least according to RS engineers. In this column, we will see how to put these sockets to good use: we will build a minimal GUI framework for Python scripts, using IPC sockets as the communication medium. While you may not, dear reader, care for Python -- just don't mention it to me -- the example developed here will still provide you with the basics necessary to write your own communication framework.

Objectives

We will build a communication framework ("physical" connection and vocabulary) between a REALbasic application (also named "the framework") and a foreign application (here in Python, just to show that IPCSocket is not restricted to RB apps), with the framework providing GUI services to the faceless application (the Python script).

I will demonstrate the interaction functionalities of IPC sockets, by providing on-demand creation of GUI objects and their actions, events, and properties.

...End of Excerpt. Please purchase the magazine to read the full article.