adia
adia copied to clipboard
Class diagram
+---------------+ +------------------+
| 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 | | ? |
+---------------+ +----------------+
Language proposal
class:
Foo(Bar)
---
+ int attr1[]
- Baz attr2 -> baz
---
void meth1()
int meth2()
An article about routing: https://www.merlin.uzh.ch/contributionDocument/download/4256