Skip to content

MalekD5/socket-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socket Server

In this project I will attempt to build a small socket server from scratch. The aim of the project is to prepare me for another bigger project (HTTP Server from scratch).

Usage

Last updates: 11/7/2024

This only works on windows. make sure to run server.c file then use telnet to establish a connection:

$ telnet remotehostname 3030

where the remotehostname is your device name (Click here to find it).

you should see a hello world message sent then the connection will be lost.

Hello world!

Connection to host lost.

TODO

  • implement a small server that sends hello world
  • implement multi-threading to accept and handle multiple connections
  • implement a client to send messages back to server
  • implement clients that communicates between each other (chatbox)
  • Ensure Proper Error handling
  • Ensure that this program works on both IPv4 and IPv6 (IP Agnostic)

Last updates: 11/7/2024

References

About

Socket Server project from Beej's Socket guide

Topics

Resources

Stars

Watchers

Forks