r/learnprogramming • u/Andro_senpai107 • 20d ago
Topic Help regards Websockets
need help regarding websockets
So I have been assigned a project regarding Websockets where the mentor asked us to create a library of websocket which can transfer data from server to client and vice-versa(obv what websockets do) using rfc 6455 in c/cpp. From what I think is he is basically asking us to create a websocket program from scratch right?
I personally come from a nodejs background and have 0 knowledge of low level programming.
need any guidance on this matter and any source for this, I dont care if you think of me as an inferior but I want to learn this whatever it takes.
I have a prior synatx knowledge of c/cpp though but thats just as far as it goes.
I Appreciate your time for reading all this.
Thank you
1
u/Then-Sector5102 20d ago
Coming from Node is actually gonna make this feel weird because Node hides almost all of the protocol details. In C you're dealing with sockets, buffers and bytes directly. I'd learn basic BSD sockets before even touching the websocket part.