This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <poll.h> | |
#include <string.h> | |
#include <sys/wait.h> | |
#include <fcntl.h> | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rust wasm-pack on Ubuntu-18.04 | |
If you follow the rust-wasm-book https://rustwasm.github.io/book/introduction.html you will run into problems executing the step `wasm-pack init` | |
on UBuntu-18.04 as the latest version of tool wasm-pack requires LLVM-7. | |
LLVM-7 is not shipped with Ubuntu-18.04 so far, it must be installed from third-party repository. For details see http://apt.llvm.org/ | |
## LLVM-7 installaton steps | |
Add the following debian-repos of your package manager, for example using the tool `synaptic` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! A chat server that broadcasts a message to all connections. | |
//! | |
//! This example is explicitly more verbose than it has to be. This is to | |
//! illustrate more concepts. | |
//! | |
//! A chat server for telnet clients. After a telnet client connects, the first | |
//! line should contain the client's name. After that, all lines send by a | |
//! client are broadcasted to all other connected clients. | |
//! | |
//! Because the client is telnet, lines are delimited by "\r\n". |