Skip to content

ashwin-nat/TCP-Echo-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

TCP Echo server

This is yet another implementation of a simple TCP echo server. This echo server is capable of supporting multiple concurrent connections (configurable by modifying a macro constant in the source code).

But unlike most other implementations out there (at least on the first page of a google search), this implementation handles all these simultaneous connections without using fork() or any multithreading.

This server uses the poll() system call to multiplex all connections on the single main thread.

Building

Use the provided make file to build the code.

make

To build a debuggable executable, use the below command

make debug

Usage

./echo_server <port_num>

Use any telnet client as a TCP connection to send out messages and receive the (echo) responses.

telnet <server_ip_addr> <server_port>

Credit

This readme file was formatted using www.makeareadme.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published