Stream Server which Accepts Multiple Connections 06-15-2016, 08:01 AM
#1
Hey all,
I've been working on an encrypted TCP/IP chat client in order to learn more about networking (I knew shitall about networking before I started this project), hence why it's in C. C, imo, is great to learn about the low-level functions of protocols and such.
It uses these macros in order to monitor socket activity and manage multiple conn
This code should work with both IPv4 and IPv6, too.
The code in and of itself is not complete, still ironing out a few things (like host disconnects) but i'm taking suggestions for anyone who wants to rip on my code. It would be helpful
I'll update the code once it's more complete.
(SL's security functions kicked in when i tried to post the thread with the code in code tags, so here's the gist)
https://gist.github.com/InsidiousMind/b4...c69a302d4e
UPDATE:
Fixed Host Disconnects and some other bugs
I've been working on an encrypted TCP/IP chat client in order to learn more about networking (I knew shitall about networking before I started this project), hence why it's in C. C, imo, is great to learn about the low-level functions of protocols and such.
It uses these macros in order to monitor socket activity and manage multiple conn
Code:
FD_ZERO - Clear an fd_set
FD_ISSET - Check if a descriptor is in an fd_set
FD_SET - Add a descriptor to an fd_set
FD_CLR - Remove a descriptor from an fd_setThis code should work with both IPv4 and IPv6, too.
The code in and of itself is not complete, still ironing out a few things (like host disconnects) but i'm taking suggestions for anyone who wants to rip on my code. It would be helpful

I'll update the code once it's more complete.
(SL's security functions kicked in when i tried to post the thread with the code in code tags, so here's the gist)
https://gist.github.com/InsidiousMind/b4...c69a302d4e
UPDATE:
Fixed Host Disconnects and some other bugs
![[Image: pBD38Xq.png]](http://i.imgur.com/pBD38Xq.png)
Email: insidious@protonmail.ch





![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)
![[Image: WV5eQ42.jpg]](http://i.imgur.com/WV5eQ42.jpg)