gen_udp:send/4
Pekka.Hedqvist@REDACTED
Pekka.Hedqvist@REDACTED
Thu May 18 07:57:23 CEST 2000
Open the port as a binary.
1> {ok, S} = gen_udp:open(6789,[binary]).
5> gen_udp:send(S, "localhost", 7000, term_to_binary(({1, 2, 3, four})))
and on the other end you get the udp packet and do a term_to_binary
and then voila you get back {1,2,3,four}. Of course if Erlang is not
on the other end you need to use some other external data representation
etc..
/pekka
More information about the erlang-questions
mailing list