next up previous contents
Next: Exécution de la commande Up: Les bases Previous: Exécution de la commande

Le client rend la main

Dans le cas d'une communication en mode WAIT, c'est le client qui finalement doit rendre la main. Il le fait avec la commande shmfree(). Dans l'exemple suivant, le client envoie deux commande successive en gardant la main puis libère le serveur.

 
INTER > shmstat=shmput("COMMAND", "@dosomething")
INTER > shmstat=shmack()
INTER > shmstat=shmwack()
INTER > shmstat=shmput("COMMAND", "@dootherthings")
INTER > shmstat=shmack()
INTER > shmstat=shmwack()
INTER > shmstat=shmfree()


WEBER Luc
Mon May 10 13:34:58 MET DST 1999