|
Re: How can I add a struct type to a member variable? [message #1835681 is a reply to message #1835503] |
Thu, 10 December 2020 10:06 |
|
The struct in_addr has been created as a nested classifier in the class Client. It seems that you created the type via the "+" dialog inside the class instead of referencing an existing via "...".
A good approach is to create a package "socket" (or similar, eventually in a different model that you import for reuse). Then create the type "in_addr" inside the package and declare it as External (Stereotype from C/C++ profile), since you want to use an existing C type instead of declaring a new one. Setup the stereotype attribute "include" and "name" (optionally, if you need the prefix "struct") accordingly.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02618 seconds