Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class diagram #41

Open
pylover opened this issue Aug 16, 2021 · 2 comments
Open

Class diagram #41

pylover opened this issue Aug 16, 2021 · 2 comments
Labels
class diagram Anything related to Class Diagram documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@pylover
Copy link
Owner

pylover commented Aug 16, 2021

                           +---------------+           +------------------+
                           | struct peer   |   +------>| enum peer_state  |
                           +---------------+   |       +------------------+
                           | +fd           |   |       |  PS_READ         |
                           |  state        >---+       |  PS_WRITE        |
                           |  writebuff[]  |           +------------------+
                           |  writerb      |
                           | *handler      |           +------------------+
                           +---------------+       +-->| struct ev_epoll  |
                                                   |   +------------------+
  +-----------------+      +---------------+       |   |  epollfd         |
  | struct ev       |  +-->| union ev_priv |       |   +------------------+
  +-----------------+  |   +---------------+       |
  |  id             |  |   |  ev_epoll     >-------+   +------------------+
  |  forks          |  |   |  ev_select    >---------->| struct ev_select |
  |  children[]     |  |   |  ev_mock      >-------+   +------------------+
  |  private_data   >--+   +---------------+       |   | ?                |
  +-----------------+                              |   +----------------- +
  | *on_recvd       |                              |
  | *on_writefinish |                              |   +------------------+
  +-----------------+                              +-->| struct ev_mock   |
      ^         ^                                      +------------------+
      |         |                                      | ?                |
      |         +--------------+                       +------------------+
      |                        |
  +---^-----------+        +---^------------+
  | struct ev_srv |        | struct ev_clnt |
  +---------------+        +----------------+
  | +struct ev    |        | +struct ev     |
  |  listenfd     |        |  hostname      |
  |  bind         |        |  port          |
  +---------------+        +----------------+
  | *on_connect   |        |  ?             |
  +---------------+        +----------------+
@pylover pylover added documentation Improvements or additions to documentation enhancement New feature or request class diagram Anything related to Class Diagram labels Aug 16, 2021
@pylover pylover added this to the WhenPigsFly milestone Aug 16, 2021
@pylover
Copy link
Owner Author

pylover commented Aug 26, 2021

Language proposal

class:

Foo(Bar)
  ---
  + int attr1[]
  - Baz attr2 -> baz
  ---
  void meth1()
  int meth2()

@pylover pylover modified the milestones: WhenPigsFly, 4.2 Aug 26, 2021
pylover added a commit that referenced this issue Aug 27, 2021
pylover added a commit that referenced this issue Aug 27, 2021
pylover added a commit that referenced this issue Aug 27, 2021
pylover added a commit that referenced this issue Aug 28, 2021
pylover added a commit that referenced this issue Aug 29, 2021
pylover added a commit that referenced this issue Aug 30, 2021
pylover added a commit that referenced this issue Aug 30, 2021
pylover added a commit that referenced this issue Aug 30, 2021
pylover added a commit that referenced this issue Aug 31, 2021
@pylover
Copy link
Owner Author

pylover commented Sep 22, 2021

An article about routing: https://www.merlin.uzh.ch/contributionDocument/download/4256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class diagram Anything related to Class Diagram documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant