fix some typos and rephrase some parts
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
ee8ea28aae
commit
740f33ac12
1 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
[[!meta title="Solution proposal for the io select/poll problem]]
|
||||
[[!meta title="Solution proposal for the io select/poll problem"]]
|
||||
|
||||
## The situation
|
||||
|
||||
|
@ -61,7 +61,7 @@ for every ***conn_object*** that
|
|||
|
||||
The ***conn_open*** function may look like this:
|
||||
|
||||
conn_open(&connection_list)
|
||||
connection_entry = conn_open();
|
||||
|
||||
Where ***connection_list*** is a list of ***connection_entries*** like this:
|
||||
|
||||
|
@ -90,10 +90,10 @@ Whether the list is an array, linked list, hash or whatever may be implementatio
|
|||
Before launching the main listener loop, we need to initialise
|
||||
the list and run the **conn_open** function of every **conn_object**:
|
||||
|
||||
struct connection_list list = init_connection_list();
|
||||
struct connection_list list = init_connection_list();
|
||||
|
||||
a_conn_open(&connection_list);
|
||||
b_conn_open(&connection_list);
|
||||
connection_add(&list, a_conn_open());
|
||||
connection_add(&list, b_conn_open());
|
||||
|
||||
Having done this, our main loop now looks pretty simple, doesn't it?
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue