Skip to content

Very simple stream server based on Beej's Guide to Network Programming stream server code.

License

Notifications You must be signed in to change notification settings

AlpineCoder/simpleServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simpleServer

Very simple stream server based on Beej's Guide to Network Programming stream server code.

Getting started

Prerequisites

You need cmake 3.1 or higher and a compiler that supports C++14. Tested with g++ 5.4, 5.5 and 7.2.1.

Building

$ git clone https://github.com/AlpineCoder/simpleServer
$ cd simpleServer
$ cmake .
$ make

Running it

$ ./simpleServer <-p port_number> [-v 4|6]

You can connect to it using telnet. For example if the server is listening on port 1234:

$ telnet ::1 1234
Trying ::1...
Connected to ::1.
Escape character is '^]'.
Hello, world!
Connection to ::1 closed by foreign host.

To stop the server, just use ctrl-c.

About

Very simple stream server based on Beej's Guide to Network Programming stream server code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published