// Program elements.
{
operating_system [ label="Operating System", shape=ellipse ];
- io_service [ label="io_service" ];
+ io_context [ label="io_context" ];
io_object [ label="I/O Object\ne.g. socket" ];
your_program [ label="Your Program" ];
}
{
edge [ arrowtail="diamond" ];
your_program:w -> io_object:nw;
- your_program:se -> io_service:ne;
+ your_program:se -> io_context:ne;
}
// Non-owning relationships;
{
- io_object:sw -> io_service:w;
+ io_object:sw -> io_context:w;
}
// Actions.
// Forward actions.
{
your_program:sw -> io_object:n [ label="1" ];
- io_object:s -> io_service:nw [ label="2" ];
- io_service:sw -> operating_system:nw [ label="3" ];
+ io_object:s -> io_context:nw [ label="2" ];
+ io_context:sw -> operating_system:nw [ label="3" ];
}
// Reverse actions.
{
edge [ arrowhead="none", arrowtail="open" ];
- io_service:se -> operating_system:ne [ label="4" ];
- io_object:se -> io_service:n [ label="5" ];
+ io_context:se -> operating_system:ne [ label="4" ];
+ io_object:se -> io_context:n [ label="5" ];
your_program:s -> io_object:ne [ label="6" ];
}
}