1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/net
Delyan Angelov 177bb30013
net: change default of the socket used by net.listen_tcp, to dualstack, even if the OS has a different default. Allow changing the listen backlog too
With this change, example vweb programs, will continue to be available to both
ipv6 and ipv4 connections from the same machine, even after doing (on linux):
`echo 1 | sudo tee /proc/sys/net/ipv6/bindv6only`

Previously, after that, vweb programs responded only to ipv6 connections, but not to ipv4 ones,
i.e. opening http://127.0.0.1:8082/ stopped working, for `v run examples/vweb/vweb_example.v` .

Note: GO web servers have the same behaviour, which is convenient for development/testing,
since it makes the programs more consistent and robust in the face of OS settings changes.
2023-08-01 11:32:08 +03:00
..
conv net.conv: rename functions to match other langs, making them easier t… (#18937) 2023-07-22 09:11:01 +03:00
ftp net.ftp: fix dir() for file names, which contain spaces (fix #18800) (#18804) 2023-07-07 06:50:20 +03:00
html net.html: fix semantic inconsistencies of tag retrieving functions (#18558) 2023-06-27 20:10:31 +03:00
http tools: add cmd/tools/show_ancient_deprecations.v, to cleanup ancient functionality, deprecated over an year ago (#18946) 2023-07-22 19:13:58 +03:00
mbedtls net.mbedtls: make compile with -prod 2023-05-18 11:31:53 +02:00
openssl net: fix typos (#18164) 2023-05-12 09:31:27 +03:00
smtp net: fix typos (#18164) 2023-05-12 09:31:27 +03:00
ssl tools: add report_v_module_folders_without_tests.v . Use it to discover other modules without _test.v files. Add simple ones, to ensure CI can find more breakage on future wide changes to vlib/ 2022-10-16 22:40:17 +03:00
unix checker: disallow struct int to ptr outside unsafe (#17923) 2023-04-13 07:38:21 +02:00
urllib vweb: add host option to controller (#18303) 2023-05-30 14:22:23 +02:00
websocket net.websocket: remove unnecessary manual frees of static strings (#19009) 2023-07-31 21:23:33 +03:00
aasocket.c.v net: fix typos (#18164) 2023-05-12 09:31:27 +03:00
address_android.c.v checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
address_darwin.c.v checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
address_default.c.v checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
address_dragonfly.c.v checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
address_freebsd.c.v checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
address_linux.c.v checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
address_netbsd.c.v checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
address_openbsd.c.v checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
address_test.v all: byte => u8 2022-04-15 14:58:56 +03:00
address_windows.c.v checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
address.v checker: disallow struct int to ptr outside unsafe (#17923) 2023-04-13 07:38:21 +02:00
afunix.h
common.v checker: disallow struct int to ptr outside unsafe (#17923) 2023-04-13 07:38:21 +02:00
errors.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
ipv6_v6only.h
net_nix.c.v net: add failed addresses + details on connect errors, make connect more robust in the default non blocking mode (#15364) 2022-08-07 10:40:05 +03:00
net_windows.c.v net: add unsafe block to int -> enum cast (#15961) 2022-10-03 21:56:06 +03:00
README.md docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
socket_options.c.v net: fix typos (#18164) 2023-05-12 09:31:27 +03:00
socket.v all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
tcp_read_line.v all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
tcp_self_dial_from_many_clients_test.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
tcp_simple_client_server_test.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
tcp_test.v tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892) 2023-01-09 23:47:03 +02:00
tcp.v net: change default of the socket used by net.listen_tcp, to dualstack, even if the OS has a different default. Allow changing the listen backlog too 2023-08-01 11:32:08 +03:00
udp_test.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
udp.v net: allow more fine grained control over socket shutdowns 2023-01-25 12:34:39 +02:00
util.v all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00

Description:

net provides networking functions. It is mostly a wrapper to BSD sockets, so you can listen on a port, connect to remote TCP/UDP services, and communicate with them.