Bell v0.2 manual

Binary data Exchange Link Library


Before you can send data from one calculator to another, you have to synchronize them somewhat, otherwise the send and receive routines will just time out and return an error. There are two ways to synchronize the calculators with this library; with bell_sync or with bell_connect. The former only waits untill both calculators are running this routine (within whichever program that uses this method). The latter also checks if the program IDs of the two calculators match, and sets the calculator IDs if it can connect. Usually you only use bell_sync for testing and bell_connect to initialize games.

After you have connected the two calculators with bell_connect you can use the swap routines. This will probably be the most common use of Bell; connect first, then swap a block of data on every iteration of the main program loop.

< previous | contents | next >