aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2018-11-06 15:22:09 +0100
committerMicael Karlberg <[email protected]>2018-11-06 15:22:09 +0100
commite3e607ac76dc308da3ac24364477d48da0dc23bd (patch)
tree1875dfac505842f33ef491d68ebe95a84b45ae85 /erts/preloaded
parentc6e94046261a608ee536c18cf631e33191e71bb1 (diff)
downloadotp-e3e607ac76dc308da3ac24364477d48da0dc23bd.tar.gz
otp-e3e607ac76dc308da3ac24364477d48da0dc23bd.tar.bz2
otp-e3e607ac76dc308da3ac24364477d48da0dc23bd.zip
[socket-nif|test] Add UDP ping-pong test cases
Added ping-pong test cases for UDP, small and medium, using the sendto/recvfrom and sendmsg/recvmsg functions. OTP-14831
Diffstat (limited to 'erts/preloaded')
-rw-r--r--erts/preloaded/ebin/socket.beambin69380 -> 69392 bytes
-rw-r--r--erts/preloaded/src/socket.erl8
2 files changed, 8 insertions, 0 deletions
diff --git a/erts/preloaded/ebin/socket.beam b/erts/preloaded/ebin/socket.beam
index d3bc7c7af0..25046e6aad 100644
--- a/erts/preloaded/ebin/socket.beam
+++ b/erts/preloaded/ebin/socket.beam
Binary files differ
diff --git a/erts/preloaded/src/socket.erl b/erts/preloaded/src/socket.erl
index dd10aac3ff..a40692881b 100644
--- a/erts/preloaded/src/socket.erl
+++ b/erts/preloaded/src/socket.erl
@@ -1958,6 +1958,7 @@ do_recvfrom(SockRef, BufSz, EFlags, Timeout) ->
next_timeout(TS, Timeout));
{nif_abort, RecvRef, Reason} ->
+ %% p("received nif-abort: ~p", [Reason]),
{error, Reason}
after NewTimeout ->
@@ -1970,6 +1971,13 @@ do_recvfrom(SockRef, BufSz, EFlags, Timeout) ->
end.
+%% pi(Item) ->
+%% pi(self(), Item).
+
+%% pi(Pid, Item) ->
+%% {Item, Info} = process_info(Pid, Item),
+%% Info.
+
%% ---------------------------------------------------------------------------
%%