Message from C, C++ discussions

December 2019

— And then do memset

— 

Sadly, reflection postponed from C++20, so there's still no standard way, but some approaches available:
https://stackoverflow.com/questions/17660095/iterating-over-a-struct-in-c

— I want to automate this initation

— Struct socketlist {
sockaddr_un masocket;
sockaddr_un psocket;
sockaddr_un vsocket;
sockaddr_un cisocket;
socketlist() {
masocket.sun_family = AF_UNIX;
psocket.sun_family = AF_UNIX;
vsocket.sun_family = AF_UNIX;
cisocket.sun_family = AF_UNIX;

}
};

Message permanent page

— I want to automate this process

— Create an array of sockaddr_un with the desired size, so you can loop over it

— This is what i'm going to do

— In what cases we use a struct instead of a class?

— All the time, in C++ a struct is a class with default public visiblity
in many cases a struct is choosen for POD types

Message permanent page

— Purge complete.

— How to make website

— Or app