03.01.2015 Views

Programmer en Erlang Francesco Cesarini et Simon ... - Pearson

Programmer en Erlang Francesco Cesarini et Simon ... - Pearson

Programmer en Erlang Francesco Cesarini et Simon ... - Pearson

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

X <strong>Programmer</strong> <strong>en</strong> <strong>Erlang</strong><br />

Traitem<strong>en</strong>t des événem<strong>en</strong>ts, id<strong>en</strong>tifiants d'obj<strong>et</strong>s <strong>et</strong> types d'événem<strong>en</strong>ts ......... 336<br />

Récapitulatif .................................................................................................................... 338<br />

Premier exemple : MicroBlog.............................................................................................. 338<br />

Second exemple : MiniBlog................................................................................................. 341<br />

Installation <strong>et</strong> exécution de wx<strong>Erlang</strong>................................................................................. 345<br />

Exercices.................................................................................................................................. 345<br />

15 Programmation des sock<strong>et</strong>s................................................................................................ 347<br />

UDP : User Datagram Protocol.......................................................................................... 347<br />

TCP : Transmission Control Protocol................................................................................ 351<br />

Exemple TCP................................................................................................................... 353<br />

Le module in<strong>et</strong>........................................................................................................................ 356<br />

Pour aller plus loin................................................................................................................. 357<br />

Exercices ................................................................................................................................. 358<br />

16 Lier <strong>Erlang</strong> avec d’autres langages de programmation............................................. 361<br />

Prés<strong>en</strong>tation du problème .................................................................................................... 362<br />

Interagir avec Java.................................................................................................................. 363<br />

Nœuds <strong>et</strong> boîtes aux l<strong>et</strong>tres ......................................................................................... 363<br />

Représ<strong>en</strong>tation des types <strong>Erlang</strong>................................................................................. 364<br />

Communication............................................................................................................... 364<br />

Récapitulatif : RPC revisité......................................................................................... 365<br />

Interactions....................................................................................................................... 366<br />

Notes de bas de page..................................................................................................... 367<br />

Pour aller plus loin......................................................................................................... 368<br />

Nœuds C.................................................................................................................................. 368<br />

Pour aller plus loin......................................................................................................... 372<br />

<strong>Erlang</strong> à partir du shell Unix : erl_call............................................................................... 372<br />

Programmes ports.................................................................................................................. 373<br />

Commandes <strong>Erlang</strong> pour les ports ............................................................................ 374<br />

Communication des données vers ou à partir d'un port ....................................... 376<br />

Bibliothèques de communication........................................................................................ 377<br />

<strong>Programmer</strong> <strong>en</strong> Ruby : erlectricity............................................................................. 377<br />

Pilotes liés <strong>et</strong> FFI.................................................................................................................... 379<br />

Exercices ................................................................................................................................. 379<br />

© 2010 <strong>Pearson</strong> France – <strong>Programmer</strong> <strong>en</strong> <strong>Erlang</strong> – <strong>Francesco</strong> <strong>Cesarini</strong>, <strong>Simon</strong> Thompson

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!