[erlang-questions] Linked-in drivers: output and control callbacks

Joel Reymont joelr1@REDACTED
Thu Dec 13 19:31:06 CET 2007


There are two similar callbacks in the driver entry: output and  
control. The signatures are virtually identical.

My understanding is that Port ! {self(),  {command,  Data}} triggers  
output whereas port_command(Port, Data)  triggers control.

When should control be used?

Are there any reasons to use control at all?

Are there any reasons to prefer output over control or vise versa?

	Thanks, Joel

--
http://wagerlabs.com








More information about the erlang-questions mailing list