. Here's a code snippet for receiving messages:</p>
				<div class="cf">
					<pre class="cl"><span class="cb2">NetIncomingMessage</span> msg;</pre>
					<pre class="cl"><span class="cb3">while</span> ((msg = server.ReadMessage()) != <span class="cb3">null</span>)</pre>
					<pre class="cl">{</pre>
					<pre class="cl">&nbsp;&nbsp;&nbsp; <span class="cb3">switch</span> (msg.MessageType)</pre>
					<pre class="cl">&nbsp;&nbsp;&nbsp; {</pre>
					<pre class="cl">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <s