closes its stream. If both streams are closed, the underlying TCP connection is
terminated.
-%\todo{see section... for example stream}
-
\subsubsection{Publish/Subscribe and Presence}
Typically, a user wants to chat with a more or less fixed set of other users,
\begin{itemize}
\item an A record \code{capulet.local}, specifying her IP address,
\item an SRV record \code{juliet@capulet.\_presence.\_tcp.local}, specifying
- the port on which her XMPP client listens, and refering to
+ the port on which her XMPP client listens, and referring to
\code{capulet.local} as the host name
\item a PTR record \code{\_presence.\_tcp.local} for service discovery,
pointing to \code{juliet@capulet.\_presence.\_tcp.local}