Join Troy Miles for an in-depth discussion in this video Creating the C++ server code, part of Web Servers and APIs using C++.
- [Instructor] In order to implement web socket,…we need to add two header files, unordered set and mutex.…So let's go to the main cpp, go to the top of the file…and we're gonna say include unordered underscore set…and include mutex.…Unordered set is a container, which stores data…in no particular order.…The mutex helps make the code thread safe.…
Now we go down to the main function.…And then right here in the main function,…we're gonna do std colon colon mutex mtx.…And below it, we're gonna…say std colon colon unordered underscore set.…And this is gonna be an unordered set…of crow colon colon web socket colon colon connection…and an asterisk pointer.…
- Working with Crow, the C++ micro web framework
- Deploying containers to Heroku
- Building websites and webpages
- Accessing data from a database
- Accessing data via RESTful APIs
- Creating API endpoints
- Running WebSockets on Heroku
Skill Level Intermediate
1. Installing Our Tools
2. Deploying to Heroku
Installing the Heroku CLI1m 17s
3. Building Websites
4. Data Access
5. RESTful APIs
6. WebSockets and Crow
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.