Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

palm/beam.c File Reference

beaming support for sending and receiving cities More...

#include <UIResources.h>
#include <StringMgr.h>
#include <ErrorMgr.h>
#include <ExgMgr.h>
#include <palmutils.h>
#include <mem_compat.h>
#include <simcity.h>
#include <appconfig.h>
#include <beam.h>
#include <savegame_be.h>
#include <logging.h>
#include <simcity_resconsts.h>

Go to the source code of this file.

Functions

int BeamSend (UInt8 *map_ptr)
 beam a city record

Err BeamReceive (ExgSocketType *ptr)
 receive the city

void BeamRegister (void)
 register to receive city records


Detailed Description

beaming support for sending and receiving cities

This encapsulates all the code for sending and receiving cities. The various elements are: packing and unpacking structures establishing communications sending and receiving the data.

Definition in file beam.c.


Function Documentation

Err BeamReceive ExgSocketType *    ptr
 

receive the city

Parameters:
ptr  the exchange manager data handle
Must be in the first code section, which is the reason for not having the section attribute.

Definition at line 75 of file beam.c.

References Char, _game_struct06a::cityname, CloseMyDB(), FindGameByName(), OpenMyDB(), SAVEGAMEVERSION, SetAutoSave(), UInt16, UInt32, UInt8, and _game_struct06a::version.

int BeamSend UInt8   map_ptr
 

beam a city record

Parameters:
map_ptr  a read only pointer to the city record
Returns:
-1 if the beaming failed

Definition at line 29 of file beam.c.

References _game_struct06a::cityname, GetCreatorID(), gMemSet, Int32, UInt32, and UInt8.

Referenced by BeamCityByName().


Generated on Mon Aug 30 19:44:17 2004 for pocketcity by doxygen1.2.18