Socket Communication


 

Introduction

 

Zinc™ v2.5 provides a way to send and receive information to and from ANY computer by using the UDP protocol. This form of communication is based on the Datagram transfer of information through a TCP/IP network. This means that a packet containing the message and the destination IP address and port is constructed every time communication is required and then sent over the network. The packet will be sent to the destination by "hopping" though the various network points.

 

Sending Data is composed of three parts:

 

The destination information: This is the IP address.
The port number of the client computer.
The message to be sent.

 

The message is text that is either literal or in a variable, or combined literals and variables. A text can contain, theocratically, ANY data. This could be useful if you wanted a Zinc™ v2.5 Projector to send information to a third party application. However, to send data to another Zinc™ v2.5 projector, the text has to be formatted in a certain way.

 

A projector-to-projector message is designed to SET variables on the remote Flash Application.

 

Notes

 

This Tutorial uses {mdm}Script™ 2.0 which is only available from Zinc™ 2.5