|
|
|
|
|
by jcelerier
2806 days ago
|
|
> Surely what objects are are meant to do is call shutdown(2) syscall - or shutdown(3) C library function well, the problem with non-RAII solutions is that you depend on the whims and talent of the programmer to call shutdown at some point. With a RAII solution like in C++ or Rust you know that if your socket opened successfully, a call to close will necessarily be issued. |
|