Age | Commit message (Collapse) | Author |
|
|
|
|
|
* maint:
The linger option is not transferred on *BSD
|
|
* raimo/inherit-listen-options/OTP-15824:
The linger option is not transferred on *BSD
|
|
|
|
|
|
|
|
Removed unnecessary spec's causing dialyzer warnings.
|
|
Invalid guard tests for function sendto. It handled the,
invalid, socket address 'null'. Presumably, this was
intended for connected UDP sockets. Though, for a
connected (UDP) socket, the send function shall be used.
|
|
Its now possible to bind a socket to the (limited) broadcast
address by specifying 'broadcast' as address:
socket:bind(Socket, broadcast)
This is *only* valid for family 'inet'.
Add testing of sending (broadcasting) to both "limited" broadcast address
and "subnet-directed" broadcast address.
OTP-15904
|
|
Add test case for the socket option bindtodevice. Also make
correction in the nif code. Used the wrong option (broadcast).
Also added more info to doc.
Note sure if this test case actually works. Set and get "works",
but the value returned by get is always "". So either we should
extend the test to made sure the bind actually has the expected
effect or... Something for a rainy day maybe...
OTP-15904
|
|
Add test case for the socket option acceptconn. Also make
minor correction (error when trying to set this option
was incorrect). Doc was also incorrect (spelled wrong).
OTP-15904
|
|
|
|
|
|
* john/erts/merge-fd-file-info/OTP-15956:
file: allow read_file_info on file descriptors
|
|
|
|
The nif code expects the socket address to be "complete",
that is all fields must exist. This was not the case for
a couple of functions, sendto, sendmsg and connect.
What was mssing was a call to 'ensure_sockaddr'.
Test: 1) Add a condition function to test if IPv6 is available
and works.
2) Needed to adjust a test case (actually a common function
used in several test cases) since the socket address
data type has two optional fields, which we do not
initiate (when sending), but the nif-code does fill in.
OTP-15897
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Add documentation for the (socket) info function, which (among
other things) return the socket counters. Also typed the
return value (socket_info()).
OTP-15818
|
|
We already had the counters. But we did not entirely handle
counter wrap, especially in related to 'iow' (Inform On Wrap).
There was also no way to get to the counter values, so a socket
specific info function was implemented (piggy back on the existing
"global" info function). And since, we have it, we also add
other info in the returned map (number of readers, writers and
acceptors).
OTP-15818
|
|
Introduced a debug/1 function and made the command/1
internal.
OTP-15817
|
|
Add a command function to the socket API.
Currently only used for changing global debug.
OTP-15817
|
|
Still trying to make --disable-esock to work properly.
Now the primary chore is the doc building.
OTP-15765
|
|
|
|
Return real pend value in erlang:dist_get_stat/1
|
|
|
|
ingela/merge-294
* ingela/raimo/udp-send-TOS/ERIERL-294/OTP-15747:
Introduce udp send ancillary data argument down to inet_drv
Fix old warnings
|
|
|
|
Renamed the current preloaded net module to prim_net
and removed the deprecated functions (call, cast, ...).
Introduce a "new" net module (in kernel) as an interface
module to the (preloaded) prim_net. This one also contains
the deprecated functions (call, cast, ...).
OTP-15765
|
|
|
|
|
|
Changed tag type tpo opaque. Also added connect (monitor and
process) cleanup.
OTP-15731
|
|
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
|
|
OTP-15731
|
|
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
|
|
If another process closes the socket, the caller will
receive an abort message instead (of the select message).
OTP-15731
|
|
Document the new way to make asynchronous calls to some
of the functions: accept, all recv and all send.
OTP-15731
|
|
Add the (public) cancel function and the first of
the cancel test cases (recvfrom(nowait)).
|
|
Added test case api_a_sendto_and_recvfrom_udp4.
Also, fixed duplicate spec.
|
|
Update function accept and its spec(s) to handle
the Timeout value of nowait.
|
|
Update function sendmsg and its spec(s) to handle
the Timeout value of nowait.
|
|
Update function sendto and its spec(s) to handle
the Timeout value of nowait.
|
|
Add proper type(s) for the select info. Also add
a utility macro to build the term.
|
|
Update function send and its spec(s) to handle
the Timeout value of nowait.
|
|
Update function recvmsg and its spec(s) to handle
the Timeout value of nowait.
|