30 ms·
A port driver can participate in the BEAM event loop, adding filehandles that get called back when they're ready. It's a more appropriate choice for something
by toast0 4y ago
A port driver can participate in the BEAM event loop, adding filehandles that get called back when they're ready.
It's a more appropriate choice for something that's asynchronous, although NIFs do have ways to fill the same role. A port driver would probably be a better choice for specalty networking that ERTS doesn't provide (raw packets? netgraph, etc).