This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cs330_f2016:labz [2017/03/24 22:59] dhart |
cs330_f2016:labz [2017/03/29 18:50] dcostello [Part 1: Name Server:] |
||
---|---|---|---|
Line 3: | Line 3: | ||
To gain more significant experience in programming elixir, by implementing a server and constructing a supervisor tree. | To gain more significant experience in programming elixir, by implementing a server and constructing a supervisor tree. | ||
- | ---- | + | ===Pre-requisites:=== |
- | ====Pre-requisites:==== | + | |
For this lab, you will need the [[http://liftothers.org/dokuwiki/doku.php?id=cs330_f2016:lab13scaffold|scaffolding code]]. | For this lab, you will need the [[http://liftothers.org/dokuwiki/doku.php?id=cs330_f2016:lab13scaffold|scaffolding code]]. | ||
Line 49: | Line 48: | ||
Example: | Example: | ||
<code elixir> | <code elixir> | ||
- | def handle_call({:register, name}, pid, mymap) do | + | def handle_call({:register, name}, {pid, _from}, mymap) do |
... | ... | ||
{:reply, :ok, mymap} | {:reply, :ok, mymap} |