UDP over v6: payload truncated at 1024 bytes
Hakan Mattsson
hakan@REDACTED
Tue Apr 6 11:34:40 CEST 2004
On Tue, 6 Apr 2004, Magnus Fröberg wrote:
magnus> Well, you can use the {packet, N} option and the packets are
magnus> auto prepended with a N bytes length indicator and the recv
magnus> will not return until the complete package is received.
magnus> (if you are not using erlang in both ends you need to add
magnus> the length bytes your self at the non-erlang side)
magnus> See the inet man page.
You can also use {packet, tpkt} for this purpose.
Search for 'tpkt' under megaco/src/tcp for an Erlang example.
The TPKT format is standardized (RFC1006), but can only
handle PDU sizes up to 65524 bytes.
/Håkan
More information about the erlang-questions
mailing list