A tutorial covering how to write a C++ client/server solution that uses TCP/IP to stream music from a server to multiple clients concurrently.
The server uses forking and the client is multi-threaded.
The entire source-code can be found at gitlab.com/jimmiejohnsson84/tcp-ip-music-streaming…
0:00 Intro and webpage link
0:31 Heads-up
1:05 Problem definition
1:35 Client solution
4:19 Serialization
5:50 Client overview
7:32 Server solution
8:47 Server overview
9:22 TCP / IP
12:29 Code client
13:39 Code client connect
14:35 Code client network thread
16:06 Code network
17:39 Code client process packet thread
18:52 Code client main loop
19:23 Code Server start
19:58 Code server main loop
20:30 Demo setup
21:01 Live demo
23:49 Links to code repo
コメント