diff options
author | Serge Aleynikov <[email protected]> | 2015-10-26 14:46:54 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2015-10-26 14:54:51 +0100 |
commit | afac3c7136c48d8630bd400c5454e146915e634f (patch) | |
tree | 47dc6a04cbfa817cefcc27114237ecffae7c43da /lib/kernel/doc/src/inet.xml | |
parent | a76cc1d337c0bf44ecefebeccac2d08e496ba7e8 (diff) | |
download | otp-afac3c7136c48d8630bd400c5454e146915e634f.tar.gz otp-afac3c7136c48d8630bd400c5454e146915e634f.tar.bz2 otp-afac3c7136c48d8630bd400c5454e146915e634f.zip |
erts: Add {line_delimiter, byte()} option to inet:setopts/2
A new {line_delimiter, byte()} option allows line-oriented TCP-based
protocols to use a custom line delimiting character. It is to be
used in conjunction with {packet, line}.
This option also works with erlang:decode_packet/3 when its first argument
is 'line'.
Diffstat (limited to 'lib/kernel/doc/src/inet.xml')
-rw-r--r-- | lib/kernel/doc/src/inet.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/kernel/doc/src/inet.xml b/lib/kernel/doc/src/inet.xml index e5d7ce048a..e6d418dc58 100644 --- a/lib/kernel/doc/src/inet.xml +++ b/lib/kernel/doc/src/inet.xml @@ -981,6 +981,11 @@ setcap cap_sys_admin,cap_sys_ptrace,cap_dac_read_search+epi beam.smp indicated length are accepted and not considered invalid due to internal buffer limitations.</p> </item> + <tag><c>{line_delimiter, Char}</c>(TCP/IP sockets)</tag> + <item> + <p>Sets the line delimiting character for line oriented protocols + (<c>line</c>). Default value is <c>$\n</c>.</p> + </item> <tag><c>{priority, Priority}</c></tag> <item> <p>Set the protocol-defined priority for all packets to be sent |