Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dhess/echoev
echo client and server written using libev
https://github.com/dhess/echoev
Last synced: 9 days ago
JSON representation
echo client and server written using libev
- Host: GitHub
- URL: https://github.com/dhess/echoev
- Owner: dhess
- License: other
- Created: 2011-07-18T21:40:14.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-08-05T08:03:50.000Z (over 13 years ago)
- Last Synced: 2024-10-12T00:26:38.655Z (26 days ago)
- Language: C
- Homepage:
- Size: 212 KB
- Stars: 21
- Watchers: 6
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: COPYING
Awesome Lists containing this project
README
* WHAT
echoev is a simple TCP echo server, built on libev. It has several
options; run 'echoev --help' for usage.echoevc is a simple TCP echo client, also built on libev. It, too,
has several options; run 'echoevc --help' for usage.* WHY
I wrote echoev and echoevc to get some experience with libev.* INSTALLING
1. In the Makefile, uncomment the PLATFORM define for your platform.2. Set the INCLUDES and LIBS Makefile variables to point to your
libev install, if it's in a non-standard location.3. make
* LICENSE
Most of the code is licensed under the MIT license.The code in ringbuf.[ch] and logging.[ch] is dedicated to the public
domain under the terms of the Creative Commons CC0 public domain
dedication. Seehttp://creativecommons.org/publicdomain/zero/1.0/legalcode
for details.
* BUGS/LIMITATIONS
- The server uses a per-connection ring buffer to prevent clients
from DOSing the host (e.g., by writing an endless stream of bytes
to the server without ever reading any of them back). The ring
buffer capacity is 8192 bytes, so the client cannot have more than
8192 bytes outstanding to be read from the server, nor can it
write a single line greater than 8192 bytes. If the client exceeds
its buffer size, the server will unceremoniously close the
connection.- The client also uses a ring buffer (for convenience, not for any
kind of security). Its buffer capacity is 32KiB. The client will
do what it can to prevent the buffer from overflowing, but the
buffer size does limit the maximum line size that can be sent to
the server.* CONTACT
Drew Hesshttp://drewhess.com/