| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | net: implement OpenBSD and NetBSD support & add stubs for other targets & ↵ | Laytan Laats | 2026-01-11 | 1 | -1/+29 |
| | | | | | cleanup | ||||
| * | net(docs): recv of 0 bytes with no error is a graceful close | Laytan Laats | 2025-12-21 | 1 | -2/+17 |
| | | |||||
| * | Change Odin's LICENSE to zlib from BSD 3-clause | gingerBill | 2025-10-28 | 1 | -1/+1 |
| | | | | | This change was made in order to allow things produced with Odin and using Odin's core library, to not require the LICENSE to also be distributed alongside the binary form. | ||||
| * | Changed TCP_Recv_Err to Socket_Info_Err and tested on darwin_arm64 | PePerRoNii | 2025-06-15 | 1 | -1/+1 |
| | | |||||
| * | Implemented _socket_info_error on peer_endpoint and bound_endpoint | PePerRoNii | 2025-06-15 | 1 | -1/+1 |
| | | |||||
| * | Add entry point in core:net as peer_endpoint | PePerRoNii | 2025-06-11 | 1 | -0/+7 |
| | | |||||
| * | Replace default_tcp_options with constant (#5056) | Jeroen van Rijn | 2025-04-19 | 1 | -7/+7 |
| | | | | Replace `default_tcp_options` with constant | ||||
| * | net: rework errors to be cross-platform | Laytan Laats | 2025-04-05 | 1 | -13/+44 |
| | | |||||
| * | Add net.dial_tcp_from_host{_or_endpoint} and unify them | Christiano Haesbaert | 2025-01-12 | 1 | -22/+35 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main motivation for this is to have sinergy with flags parsing, currently flags for a sockaddr returns a net.Host_Or_Endpoint, but we can't just dial from it since there isn't a variant. Consider the following: ``` Options :: struct { target: net.Host_Or_Endpoint `args:"pos=0,required" usage:"host:port"`, } before :: proc() -> (sock: net.TCP_Socket, err: net.Network_Error) { opt: Options flags.parse_or_exit(&opt, os.args) switch t in opt.target { case net.Host: sock, err = net.dial_tcp(t.hostname, t.port) case net.Endpoint: sock, err = net.dial_tcp(t) } return } after :: proc() -> (sock: net.TCP_Socket, err: net.Network_Error) { opt: Options flags.parse_or_exit(&opt, os.args) sock, err = net.dial_tcp(opt.target) return } ``` For completion, add dial_tcp_from_host() and define the upper functions in terms of the newly added ones, cuts one repeated block, now: from_hostname_and_port_string is parse + from_host_or_endpoint from_hostname_with_port_override is parse + override + from_host_or_endpoint from_host is to_endpoint + from_endpoint from_host_or_endpoint is from_endpoint or from_host | ||||
| * | Merge pull request #4261 from laytan/net-bound-endpoint | gingerBill | 2024-09-19 | 1 | -0/+7 |
| |\ | | | | | net: add `bound_endpoint` procedure | ||||
| | * | net: add `bound_endpoint` procedure | Laytan Laats | 2024-09-17 | 1 | -0/+7 |
| | | | |||||
| * | | Moved all packages in core, base, vendor, tests and examples to use new #+ ↵ | Karl Zylinski | 2024-09-14 | 1 | -1/+1 |
| |/ | | | | file tag syntax. | ||||
| * | Add new contribution notes to `core:net` | Feoramund | 2024-08-05 | 1 | -0/+2 |
| | | |||||
| * | Port `core:net` to FreeBSD | Feoramund | 2024-06-26 | 1 | -1/+1 |
| | | |||||
| * | correct newly found vets | Laytan Laats | 2024-04-03 | 1 | -4/+3 |
| | | |||||
| * | [net]: Add send_any, recv_any variants to proc groups for Any_Socket | flysand7 | 2023-11-24 | 1 | -3/+38 |
| | | |||||
| * | Implement new sys/unix package | flysand7 | 2023-10-27 | 1 | -1/+1 |
| | | |||||
| * | Fix #2386 | Jeroen van Rijn | 2023-03-16 | 1 | -0/+3 |
| | | |||||
| * | Add `set_blocking` for network sockets | Sokus | 2023-03-08 | 1 | -0/+4 |
| | | |||||
| * | Don't try to check core:net on the BSDs. | Jeroen van Rijn | 2023-03-03 | 1 | -6/+8 |
| | | |||||
| * | Coalesce socket_windows | Jeroen van Rijn | 2023-03-03 | 1 | -10/+100 |
| | | |||||
| * | Update comments | Jeroen van Rijn | 2023-03-02 | 1 | -3/+0 |
| | | |||||
| * | manually start merging core_net | Colin Davidson | 2023-03-01 | 1 | -0/+87 |