[erlang-questions] gen_udp and Wake On Lan (wol)

Andrey Shnayder camuig@REDACTED
Mon Jun 9 15:44:24 CEST 2008


Hello, Erlang team!
I try to send magic pack of wake on lan feature (
http://en.wikipedia.org/wiki/Wake_on_lan) in erlang.

code below:
> {ok,S} = gen_udp:open(2025).
{ok,#Port<0.275>}
> gen_udp:send(S, Pack).
{error,einval}
> gen_udp:close(S).

Pack is the magic packet.
i.e. I have an error in gen_udp:send(S, Pack). Please, help me.

PS: sorry for my english, I'm from Russia =)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080609/b9f721f8/attachment.htm>


More information about the erlang-questions mailing list