aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/nifs/common/socket_int.h
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2018-09-25 16:34:55 +0200
committerMicael Karlberg <[email protected]>2018-09-27 12:43:13 +0200
commit742a210ace9625646386eb71b8d33e9938eeaec1 (patch)
tree3d723d484615e74d63630512b6a53c7eaee1cb6e /erts/emulator/nifs/common/socket_int.h
parent91ffcbf2bee63cd5314132edee56825973a62f72 (diff)
downloadotp-742a210ace9625646386eb71b8d33e9938eeaec1.tar.gz
otp-742a210ace9625646386eb71b8d33e9938eeaec1.tar.bz2
otp-742a210ace9625646386eb71b8d33e9938eeaec1.zip
[socket-nif] Add proper recv timeout handling
Added proper recv timeout handling. Made use of the enif_select(mode = cancel) feature. Each time a timeout expires, the "active" recv (the surrent reader select) has to be cancelled. Not yet tested...something for the new test suite... Also, added support for getopt(controlling_pprocess) that, for some reason, was not yet implemented. OTP-14831
Diffstat (limited to 'erts/emulator/nifs/common/socket_int.h')
-rw-r--r--erts/emulator/nifs/common/socket_int.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/nifs/common/socket_int.h b/erts/emulator/nifs/common/socket_int.h
index 3595c483d7..c3595e495d 100644
--- a/erts/emulator/nifs/common/socket_int.h
+++ b/erts/emulator/nifs/common/socket_int.h
@@ -184,6 +184,7 @@ extern ERL_NIF_TERM esock_atom_einval;
#define MKLA(E,A,L) enif_make_list_from_array((E), (A), (L))
#define MKEL(E) enif_make_list((E), 0)
#define MKMA(E,KA,VA,L,M) enif_make_map_from_arrays((E), (KA), (VA), (L), (M))
+#define MKPID(E, P) enif_make_pid((E), (P))
#define MKREF(E) enif_make_ref((E))
#define MKS(E,S) enif_make_string((E), (S), ERL_NIF_LATIN1)
#define MKSL(E,S,L) enif_make_string_len((E), (S), (L), ERL_NIF_LATIN1)