aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/ebin
AgeCommit message (Collapse)Author
2019-05-29[esock] Types and cleanupMicael Karlberg
Changed tag type tpo opaque. Also added connect (monitor and process) cleanup. OTP-15731
2019-05-29[esock] Connect can now also take a nowait TimeoutMicael Karlberg
Had forgot about the connect function. But it can now also handle the Timeout = nowait, maybe resulting in a select. Required some nif work also... OTP-15731
2019-05-29[esock|doc] Make select_ref opaqueMicael Karlberg
OTP-15731
2019-05-29[esock] Changed return value for a selected async callMicael Karlberg
The return value for an async call (Timeout = nowait) will now (normally) result in a {select, SelectInfo} instead (if a select was performed). OTP-15731
2019-05-29[esock|doc] Add text about the abort messageMicael Karlberg
If another process closes the socket, the caller will receive an abort message instead (of the select message). OTP-15731
2019-05-29[esock|doc] Document the new asynchronous featureMicael Karlberg
Document the new way to make asynchronous calls to some of the functions: accept, all recv and all send. OTP-15731
2019-05-29[socket] Add cancel and the first recvfrom(nowait) cancel test caseMicael Karlberg
Add the (public) cancel function and the first of the cancel test cases (recvfrom(nowait)).
2019-05-29[socket] First nowait test case (sendto and recvfrom udp4)Micael Karlberg
Added test case api_a_sendto_and_recvfrom_udp4. Also, fixed duplicate spec.
2019-05-29[socket] Update accept to handle Timeout = nowaitMicael Karlberg
Update function accept and its spec(s) to handle the Timeout value of nowait.
2019-05-29[socket] Update sendmsg to handle Timeout = nowaitMicael Karlberg
Update function sendmsg and its spec(s) to handle the Timeout value of nowait.
2019-05-29[socket] Update sendto to handle Timeout = nowaitMicael Karlberg
Update function sendto and its spec(s) to handle the Timeout value of nowait.
2019-05-29[socket] Add type and macro for select infoMicael Karlberg
Add proper type(s) for the select info. Also add a utility macro to build the term.
2019-05-29[socket] Update send to handle Timeout = nowaitMicael Karlberg
Update function send and its spec(s) to handle the Timeout value of nowait.
2019-05-29[socket] Update recvmsg to handle Timeout = nowaitMicael Karlberg
Update function recvmsg and its spec(s) to handle the Timeout value of nowait.
2019-05-29[socket] Update recvfrom to handle Timeout = nowaitMicael Karlberg
Update function recvfrom and its spec(s) to handle the Timeout value of nowait. Also replaced timestamp method with erlang:monotonic_time(milli_seconds).
2019-05-29[socket] Update recv to handle Timeout = nowaitMicael Karlberg
Update function recv and its spec(s) to handle the Timeout value of nowait.
2019-05-29[esock] Fixed check domain local and specsMicael Karlberg
Fixed the spec's for function open/3,4. Also, corrected the test for retreiving resulting protocol when performing open with proto = 0 (default) and domain is not local. Local may not be defined on all platforms. OTP-15822
2019-05-29[esock] Update the supports functions to also display localMicael Karlberg
The socket:supports/0,1 now also displays local (Unix Domain Socket). OTP-15822
2019-05-29[esock|test] Add plain send/recv small ping-pong test case for localMicael Karlberg
Add a (plain) send and recv small ping-pong test case for Unix Domain (stream) socket. Also fixed minor bug in setopt for level 'otp' and option rcvbuf. Could not be changed if unix domain (stream) socket (local). OTP-15822
2019-05-29[esock] Finalize handling of Unix Domain SocketMicael Karlberg
Corrected various issues and added missing stuff. Default protocol is now indicated with the atom 'default' instead of the atom 'null'. Also let the underlying OS decide what protocol is actually the default protocol. OTP-15822
2019-05-27Update preloaded modulesLukas Larsson
2019-04-30[net] Improvements (ahum) when --disable-esockMicael Karlberg
The net module uses socket, but when the system has been built with --disable-esock, there is no socket...
2019-04-30[socket|net] Fixed beamsMicael Karlberg
Forgot about using 'otp_build update_preloaded --no-commit' when updating the preloaded and compiled with plain erlc... Caused problems for dyalizer... OTP-15658
2019-04-30[socket|net] Preloaded now built with latest compilerMicael Karlberg
OTP-15658
2019-04-30[socket|net] Final prepMicael Karlberg
The config options --[en|dis]able-esock now works as expected.
2019-04-17[socket] Fixed beamsMicael Karlberg
Forgot about using 'otp_build update_preloaded --no-commit' when updating the preloaded and compiled with plain erlc... Caused problems for dyalizer... OTP-15658
2019-04-17[socket] Make use of the new select (read|write) functionsMicael Karlberg
Make use of the new select functions; enif_select_[read|write], for read and write select. These functions allows us to construct the select message ourseves: {'$socket', Socket, select, Ref} This is in preparations for when we introduce the 'nowait' (or something similar) value for the timeout argument (in accept, read and write funcions). It also solves (we hope) the term leakage problems (it was difficult to free the environment when there was only one/socket). OTP-15496
2019-04-17[socket] Messages from the nif code now has a proper socketMicael Karlberg
The messages sent from the nif code to an erlang process has been changed to: {'$socket', Socket :: socket(), Tag :: atom(), Info :: term()} This is in preparation for (using) the new enif select API. OTP-15496
2019-03-19Add possibility to also get size of data from erlang:dist_ctrl_get_data()Rickard Green
2019-03-04Merge branch 'maint'Siri Hansen
2019-02-22Merge branch 'bmk/20190204/socket_as_nif/OTP-14831'Micael Karlberg
2019-02-22[socket] More fixes to socket closeMicael Karlberg
Better handling of socket close. The 'closeRef' needed its own environment to make if work in both cases (both called and scheduled). Also Introduced the enif select wrapper functions (read, write, stop and cancel). Also add error handling at every time one of these functions are called. OTP-14831
2019-02-22[socket|doc] Fixed IPv6 PKTINFO typeMicael Karlberg
Another broken anchor fixed. The type 'ipv6_pktinfo' was not exported nor was it part of the doc. OTP-14831
2019-02-22[socket|net|doc] Fixed broken anchorsMicael Karlberg
Fixed broken links to types and functions. OTP-14831
2019-02-22[net] Deprecated functions needs attributeMicael Karlberg
Add the 'depricated' attribute for the old (and decrepit) functions from the old net module. OTP-14831
2019-02-22[socket|doc] Fixed links and stuffMicael Karlberg
Corrected linking references (links) to functions. Also added links from getopt/setopt functions to the users guide. Also added some comments to the socket module regarding open with (ready made) descriptor (which is not yet supported). OTP-14831
2019-02-22[socket] Shut dialyzer upMicael Karlberg
2019-02-22Update preloaded modulesMicael Karlberg
2019-02-22Update preloadedSiri Hansen
erts/preloaded/ebin/erl_prim_loader.beam erts/preloaded/ebin/init.beam erts/preloaded/ebin/prim_file.beam
2019-02-15Merge branch 'maint'Raimo Niskanen
Conflicts: erts/preloaded/ebin/prim_inet.beam
2019-02-15Merge branch 'raimo/erts/gen_tcp-listen-linger-slow/ERIERL-303/OTP-14728' ↵Raimo Niskanen
into maint * raimo/erts/gen_tcp-listen-linger-slow/ERIERL-303/OTP-14728: Check empty_out_q at close also for linger Conflicts: erts/preloaded/ebin/prim_inet.beam
2019-02-15Merge branch 'maint'Björn Gustavsson
* maint: Add persistent_term:get(Key, DefaultValue) Make dialyzer faster for left-associative andalso/orelse expressions
2019-02-14Add persistent_term:get(Key, DefaultValue)Björn Gustavsson
https://bugs.erlang.org/browse/ERL-843
2019-02-11Check empty_out_q at close also for lingerRaimo Niskanen
2019-02-04Merge branch 'bmk/20180918/nififying_inet/OTP-14831' into ↵Micael Karlberg
bmk/20190204/socket_as_nif/OTP-14831
2019-02-01[socket-nif] nosup expection of win32 and type(s) replacementsMicael Karlberg
The nif callback functions (nif_open) now instead cause an 'nosup' exception if called (instead of badarg). The basic type uint16_t, uint32_t and int32_t (C99) replaced "own" (that is, defined by "us") types Uint16, Uint32 and Sint32. The point of this is that our Windows build system seems to be a bit lacking when it comes to types... Removed "some stuff" that was if-defed. Different solution when win32 support for sockets has been improved. Make sure the socket_*.c util modules are not included in the building for windows. OTP-15526
2019-01-31Merge branch 'maint'Sverker Eriksson
2019-01-29[socket-nif] The otp rcvbuf option updatedMicael Karlberg
Its now possible to set a rcvbuf (otp) option value of {N :: pos_integer(), BufSz :: pos_integer()}. This value is used for type stream and protocol tcp, when calling the function recv with length = 0 (zero). The second value, BufSz, is the actual size of the receive buffer used when calling the socket recv function, and the first value, N, is the max number of possible reads that will be performed (at most), even if there is more data to read. This is limit the effect of DoS attacks. OTP-15497
2019-01-28erts: Add magic port control numbersSverker Eriksson
to increase the probablity of a nice badarg from erlang:port_control.
2019-01-21Merge branch 'maint'Siri Hansen