Back to Browse

Multiple Chat Clients: One Thread (in C++)

138.5K views
Jun 19, 2017
27:45

#networking #sockets #multipleclients #nothread This is an introduction to network programming by building a server in C++ that echos the client's messages back. It allows multiple clients to connect using the fd_set structure, the select() function and three macros: FD_CLR, FD_SET and FD_ZERO Introduction to Networking, sockets and ports: https://youtu.be/TE1XQ8U_JNA The original video (C++) allowing one client to connect: https://www.youtube.com/watch?v=WDn-htpBlnU Source code: https://github.com/codehoose/cpp-networking/tree/main/MultipleClientsBarebonesServer You'll need PuTTY to test out the server. It can be downloaded from here: http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Download

1 formats

Video Formats

360pmp440.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Multiple Chat Clients: One Thread (in C++) | NatokHD