<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
There is no argc/argv in a linked in driver as far as I know. On the
driver side you have<br>
static ErlDrvData driver_start(ErlDrvPort port, char *buff)<br>
<br>
and buff just points to the driver name; if you load the driver with
parameters you just get an "open_error".<br>
Any other ideas?<br>
Sebastian-<br>
<br>
Per Hedeland escribió:
<blockquote cite="mid200802011410.m11EA9xe004844@pluto.hedeland.org"
type="cite">
<pre wrap="">Sebastian Bello <a class="moz-txt-link-rfc2396E" href="mailto:sebastian.bello@inswitch.us"><sebastian.bello@inswitch.us></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">sorry but I didn't mention I was thinking about a linked-in driver;
</pre>
</blockquote>
<pre wrap=""><!---->
You said "driver" which was quite sufficient - that was the case that my
answer described. (An external port program would (at least on *nix) get
the Command in the argc/argv arguments to main()...)
--Per
_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://www.erlang.org/mailman/listinfo/erlang-questions">http://www.erlang.org/mailman/listinfo/erlang-questions</a>
__________ NOD32 2843 (20080201) Information __________
This message was checked by NOD32 antivirus system.
<a class="moz-txt-link-freetext" href="http://www.eset.com">http://www.eset.com</a>
</pre>
</blockquote>
<br>
</body>
</html>