aboutsummaryrefslogtreecommitdiff
path: root/core/net
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Make more private.Jeroen van Rijn2023-03-0316-916/+266
|
* Alignment + unnecessary allocator param.Jeroen van Rijn2023-03-036-24/+24
|
* ripple bill-suggestionsColin Davidson2023-03-023-24/+15
|
* cleanup openbsd errors moreColin Davidson2023-03-021-12/+7
|
* big error cleanupColin Davidson2023-03-028-821/+829
|
* Update commentsJeroen van Rijn2023-03-028-211/+100
|
* catch alloc error on wstring_to_utf8 convertColin Davidson2023-03-011-12/+12
|
* remove win32 refColin Davidson2023-03-011-3/+2
|
* more test cleanupColin Davidson2023-03-013-15/+6
|
* more manual type carryoverColin Davidson2023-03-013-41/+41
|
* manually start merging core_netColin Davidson2023-03-0120-0/+5605