diff options
author | Micael Karlberg <[email protected]> | 2018-07-10 11:28:11 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2018-09-18 14:50:18 +0200 |
commit | 9110ba256099e6fa55461fc4ca90da5ec4b2966b (patch) | |
tree | c290bff6c491817266f2d62f5914212d8783ee67 /lib/kernel/test/socket_server.erl | |
parent | 5329726352f8b983e419b6206a85c15cc8836676 (diff) | |
download | otp-9110ba256099e6fa55461fc4ca90da5ec4b2966b.tar.gz otp-9110ba256099e6fa55461fc4ca90da5ec4b2966b.tar.bz2 otp-9110ba256099e6fa55461fc4ca90da5ec4b2966b.zip |
[socket-nif] Add support for socket (level socket) option oobinline
Added support for socket level socket option oobinline (both get
and set).
OTP-14831
Diffstat (limited to 'lib/kernel/test/socket_server.erl')
-rw-r--r-- | lib/kernel/test/socket_server.erl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/kernel/test/socket_server.erl b/lib/kernel/test/socket_server.erl index e5338644b1..da5a2ca905 100644 --- a/lib/kernel/test/socket_server.erl +++ b/lib/kernel/test/socket_server.erl @@ -438,11 +438,13 @@ handler_init(Manager, ID, Peek, Sock) -> {ok, Domain} = socket:getopt(Sock, socket, domain), {ok, Type} = socket:getopt(Sock, socket, type), {ok, Proto} = socket:getopt(Sock, socket, protocol), + {ok, OOBI} = socket:getopt(Sock, socket, oobinline), i("got continue when: " - "~n Domain: ~p" - "~n Type: ~p" - "~n Protocol: ~p", [Domain, Type, Proto]), - %% socket:setopt(Socket, otp, debug, true), + "~n Domain: ~p" + "~n Type: ~p" + "~n Protocol: ~p" + "~n OOBInline: ~p", [Domain, Type, Proto, OOBI]), + %% socket:setopt(Sock, otp, debug, true), handler_loop(#handler{peek = Peek, manager = Manager, type = Type, |