Example implementations of IO multiplexed echo server over TCP/IP.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
.gitignore
Makefile
README.md
client.go
epoll_echo.c
epoll_pre_fork_echo.c
epoll_pre_thread_echo.c
fork_echo.c
pre_fork_echo.c
pre_thread_echo.c
simple_echo.c
thread_echo.c

README.md

I/O Multiplexing echo servers

Example implementations of IO multiplexed echo server over TCP/IP.

Contents

model worker io multiplex stable
simple echo single-process 1 x o
thread echo multi-thread variable x o
fork echo multi-process variable x o
pre-thread echo multi-thread variable x o
pre-fork echo multi-process variable x o
simple epoll echo single-process 1 o o
pre-thread epoll echo multi-thread variable o o
pre-fork epoll echo multi-process variable o o

Testing

  • Run make

  • Launch any server

  • Run client.go with options

$ time go run client.go -n xxx -m xxx
    -m int
      Number of echo request per client (default 10)
    -n int
      Number of client (default 10)

Author

takamasa saichi