Skip to content

f0lio/unix-sockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNIX Sockets

Practicing Socket programming by making a simple server in C.

Usage:

Compile and run the server (You can specify any* port you want):

$ make && ./server 8080

Test it using telnet:

$ telnet localhost 8080

or using cURL:

$ curl --http0.9 -v localhost:8080

--http0.9 tells cURL to handle HTTP/0.9 response normally.
-v for verbose mode.

P.S: Port is better not be less than 1024, as those are reserved already, plus normal users are not allowed to run servers on them; thus causing an error when binding the socket (unless you run the server as root).

About

Simple C server built using UNIX sockets

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published