X-Git-Url: https://git.rohieb.name/skm-ma-ws1314.git/blobdiff_plain/6fe1c75e6dfe5485572e9047019a04d1e13114f5..f53f14e6e5cc2ab0ff1a8296e49a30a87a8947e1:/fig-xmpparch.tex

diff --git a/fig-xmpparch.tex b/fig-xmpparch.tex
new file mode 100644
index 0000000..248db21
--- /dev/null
+++ b/fig-xmpparch.tex
@@ -0,0 +1,14 @@
+\def\nodelist{
+	juliet/{(-1,-1)}/XMPP client \code{juliet@example.net}/below/computer,
+	examplenet/{(-1,1)}/XMPP server \code{example.net}/above/server,
+	imexampleorg/{(1,1)}/XMPP server \code{im.example.org}/above/server,
+	romeo/{(1,-1)}/XMPP client \code{romeo@im.example.org}/below/computer%
+}
+\foreach \name/\pos/\text/\tpos/\icon in \nodelist {
+	\node (\name) at \pos { \includegraphics[width=2em]{icon-\icon.pdf} };
+	\node[\tpos=of \name,iconlabel] (\name text) { \text };
+}
+\draw[<->,dashed] (juliet) -- node[anchor=east,label]{s2c} (examplenet);
+\draw[<->] (examplenet) -- node[anchor=south,label]{s2s} (imexampleorg);
+\draw[<->,dashed] (imexampleorg) -- node[anchor=west,label]{s2c} (romeo);
+
