Skip to main content

Timeline for Simple networking framework in C++

Current License: CC BY-SA 4.0

4 events
when toggle format what by license comment
Jul 1, 2022 at 5:32 comment added G. Sliepen Ah, recv() and send() don't work on C-strings though, they just work on buffers of any type. So it's fine to use a char buf[BUFMAX] there. When I mentioned C++ strings, I was thinking of the member variables hostname and port.
Jun 30, 2022 at 19:39 comment added Andre Adrian The socket functions recv() and send() work on C-strings. If I use C++ strings, I have to convert from one representation to the other representation. In the case of chat TCP server that is after recv() convert from C-string to C++-string and then before send() convert from C++-string to C-string. If you do some processing, this is a good approach. But if you are only moving data around, the conversion is questionable.
Jun 30, 2022 at 18:18 vote accept Andre Adrian
Jun 29, 2022 at 14:49 history answered G. Sliepen CC BY-SA 4.0