GetProperties
status_t GetProperties(BMessage *properties) const;
if (endpoint->GetProperties(&msg) == B_OK) {