diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 15:01:51 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 15:01:51 -0700 |
commit | f344b250f6f062a1a1902bf69b23ebf9b565de0e (patch) | |
tree | 199bd32a9aee198d5028b1c21b83d2cf0944b2b6 /html/server-socket.mu.html | |
parent | 897ae8c1855f830d8819759ea327d147f28a09bf (diff) | |
download | mu-f344b250f6f062a1a1902bf69b23ebf9b565de0e.tar.gz |
3395
Diffstat (limited to 'html/server-socket.mu.html')
-rw-r--r-- | html/server-socket.mu.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/html/server-socket.mu.html b/html/server-socket.mu.html index 32782b5a..5c11d638 100644 --- a/html/server-socket.mu.html +++ b/html/server-socket.mu.html @@ -31,12 +31,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color <pre id='vimCodeElement'> <span class="muRecipe">def</span> main [ <span class="Constant">local-scope</span> - socket:number<span class="Special"> <- </span>$socket <span class="Constant">8080/port</span> + socket:num<span class="Special"> <- </span>$socket <span class="Constant">8080/port</span> $print <span class="Constant">[Mu socket creation returned ]</span>, socket, <span class="Constant">10/newline</span> - session:number<span class="Special"> <- </span>$accept socket + session:num<span class="Special"> <- </span>$accept socket <span class="Delimiter">{</span> - client-message:address:buffer<span class="Special"> <- </span>new-buffer <span class="Constant">1024</span> - c:character<span class="Special"> <- </span>$read-from-socket session + client-message:&:buffer<span class="Special"> <- </span>new-buffer <span class="Constant">1024</span> + c:char<span class="Special"> <- </span>$read-from-socket session <span class="muControl">break-unless</span> c $print c <span class="muControl">loop</span> |