next up previous contents index
Next: Program examples Up: Using a network with Previous: The network Howto   Contents   Index

Primitives for networking

XLogo has 4 primitives that allow it to communicate over a network: listentcp, executetcp, chattcp and send. In all future examples, we will take the case of the two computers in the previous figure.

A little hint: Launch two instances of XLogo on the same computer.
- In the first window, execute listentcp.
- In the second one, write executetcp "127.0.0.1 [fd 100 rt 90]

You can move the turtle in the other window! (heh, heh, it's possible because 127.0.0.1 designates your local address, so it's your own computer...)


next up previous contents index
Next: Program examples Up: Using a network with Previous: The network Howto   Contents   Index
Loïc 2008-06-08