Add echo server example.

This commit is contained in:
Sönke Ludwig 2017-09-21 14:08:52 +02:00
parent 90d5784c2d
commit 59e3112e95
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,3 @@
name "echo-server"
description "A simple echo protocol server implementation"
dependency "vibe-core" path="../../"

View file

@ -0,0 +1,9 @@
import vibe.core.core : runApplication;
import vibe.core.net : listenTCP;
import vibe.core.stream : pipe;
void main()
{
listenTCP(7000, (conn) => pipe(conn, conn));
runApplication();
}