aboutsummaryrefslogtreecommitdiff
path: root/core/net
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3439 from andreas-jonsson/netbsdgingerBill2024-05-151-2/+2
|\ | | | | NetBSD support
| * Merge branch 'master' into netbsdAndreas T Jonsson2024-04-252-4/+21
| |\
| * | More std lib fixesAndreas T Jonsson2024-04-191-2/+2
| | | | | | | | | | | | Just selecting the same codepath as other BSD's for the most part.
* | | Fix #3577gingerBill2024-05-131-2/+2
| |/ |/|
* | fix(net): fix return type for `send_tcp`Rickard Andersson2024-04-191-1/+1
| | | | | | | | | | Was `.Connection_Closed` but this is only inferrable if our return type is not a sub-union of another.
* | docs(net): add comment about `EPIPE` -> `Connection_Closed`Rickard Andersson2024-04-191-1/+3
| |
* | feat(net): turn `EPIPE` into `Connection_Closed`Rickard Andersson2024-04-192-2/+3
| |
* | fix(net): add `NOSIGNAL` to `send` optionsRickard Andersson2024-04-192-1/+2
| | | | | | | | | | | | | | This is a better default than not having it, since it turns errors that would be signals into error values instead. We could take these as options but given that we currently don't I think this at the very least improves on the status quo.
* | uniformity changeblob18072024-04-131-2/+2
| | | | | | | | small change to check things uniform
* | Added support for URL fragmentsblob18072024-04-131-2/+15
|/ | | | Added support for a URL's fragment/anchor to `split_url` & `join_url` in `core:net` plus 4 new tests to cover it.
* correct newly found vetsLaytan Laats2024-04-034-12/+7
|
* fixupTetralux2024-02-221-1/+1
|
* [net] Better error code for binding a privileged port without root access on ↵Tetralux2024-02-222-3/+12
| | | | | | | | | | Darwin This condition results in os.EACCESS, which we were translating to Broadcast_Disabled. This was the case because binding to the broadcast address on a UDP port, without setting the BROADCAST flag, also results in this error. Given the fact that reserved ports also produce this error, we now check for this condition in net.bind() and translate it to a custom, clearer error: Privileged_Port_Without_Root.
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-281-1/+1
|
* [net]: Fix passing the wrong socket to on linuxflysand72023-11-241-1/+1
|
* Merge pull request #2972 from flysand7/net-socket-anyJeroen van Rijn2023-11-241-3/+38
|\ | | | | [net]: Add send_any, recv_any variants to proc groups for Any_Socket
| * [net]: Add send_any, recv_any variants to proc groups for Any_Socketflysand72023-11-241-3/+38
| |
* | Merge pull request #2948 from flysand7/fix-doJeroen van Rijn2023-11-113-5/+15
|\ \ | | | | | | [core]: Remove `do` keyword from the core library
| * | [core]: Remove `do` keyword from the core libraryflysand72023-11-113-5/+15
| |/
* | Fix net.split_urlJeroen van Rijn2023-11-091-1/+1
| | | | | | | | Resolves issue #2924
* | Fix use of unitialized socket in socket_linux.odin#_dial_tcp_from_endpointDivan Burger2023-11-061-1/+1
|/
* Implement new sys/unix packageflysand72023-10-274-450/+432
|
* bugfix: darwin net flagssimon2023-10-061-2/+2
|
* darwin _enumerate_interfacessimon2023-09-302-5/+122
|
* Use `or_break` and `or_continue` where appropriate in the core librarygingerBill2023-09-302-32/+27
|
* [net] Assorted cleanupTetralux2023-08-264-31/+18
| | | | | | | | | | | - Remove some old comments - Fix some doc comments - Improve some doc comments - Unify name of the errors related to UDP packet sizes (i.e: recv buffer too small, and message too big to send)
* Remove `switch in` in favour of `switch _ in`gingerBill2023-08-082-5/+5
|
* Improve `//+vet`; remove `using` in many places; add `//+vet !using-stmt` ↵gingerBill2023-07-311-35/+35
| | | | where necessary
* fix(dns): don't exit early on no hosts in hosts fileRickard Andersson2023-06-121-4/+1
| | | | | | If we don't have any hosts specified we'll still not generate any overrides which is fine, but we'll continue onto actually trying to resolve the hostname we came into the function for initially.
* Fix Timeval for darwin and linuxJames Duran2023-06-072-8/+8
|
* implement non blocking sockets for darwinLaytan Laats2023-05-271-2/+19
|
* Merge pull request #2547 from laytan/parse-address-can-return-nilJeroen van Rijn2023-05-191-0/+4
|\ | | | | fix parse_address can return nil
| * fix parse_address can return nilLaytan Laats2023-05-191-0/+4
| |
* | Merge pull request #2533 from laytan/add-hex-and-expand-percent-decodingJeroen van Rijn2023-05-151-39/+5
|\ \ | | | | | | add encoding/hex and use it to expand the percent decoding chars
| * | add encoding/hex and use it to expand the percent decoding charsLaytan Laats2023-05-141-39/+5
| |/
* / Join URL queries with &Yoshihiro Tanaka2023-05-141-1/+7
|/
* fix leak in url_parseLaytan Laats2023-05-091-0/+2
|
* Fix #2471Jeroen van Rijn2023-04-211-3/+5
|
* Preserve port when calling `net.resolve` with hostname:port.Jeroen van Rijn2023-04-181-1/+2
|
* Fix #2386Jeroen van Rijn2023-03-161-0/+3
|
* Add `set_blocking` for network socketsSokus2023-03-088-0/+72
|
* Add .None to Linux & Darwin, too.Jeroen van Rijn2023-03-042-3/+25
|
* Apply #shared_nil to Network_ErrorJeroen van Rijn2023-03-043-26/+31
|
* Update addr.odinJeroen van Rijn2023-03-041-1/+1
| | | | Fix comment
* Don't try to check core:net on the BSDs.Jeroen van Rijn2023-03-035-18/+28
|
* Fix one last review comment.Jeroen van Rijn2023-03-031-4/+5
|
* Finish cleaning up core_net.Jeroen van Rijn2023-03-032-42/+47
|
* More coalescing.Jeroen van Rijn2023-03-035-106/+97
|
* Coalesce socket_windowsJeroen van Rijn2023-03-034-116/+132
|
* Coalesce more.Jeroen van Rijn2023-03-038-54/+66
|