aboutsummaryrefslogtreecommitdiff
path: root/src/lib/net.c
AgeCommit message (Expand)AuthorLines
2020-10-22global: Use ENUM_NEGATE() macro where necessaryAki Tuomi-1/+1
2020-09-11lib: net_listen|connect_unix() - Use consistent error handling for too long p...Timo Sirainen-1/+5
2020-02-06global: Replace most gettimeofday() calls with i_gettimeofday()Timo Sirainen-4/+2
2019-12-05lib: Don't use EAI_{ADDRFAMILY,NODATA} when they don't existJosef 'Jeff' Sipek-0/+4
2019-11-13lib: net_set_tcp_quickack() - Fix compiler warnings with non-Linux OSesTimo Sirainen-1/+1
2019-11-12lib: Add net_set_tcp_quickack()Timo Sirainen-0/+12
2019-06-19lib: Add net_get_hosterror_type()Timo Sirainen-0/+27
2019-05-13lib: net_*() - Make sure sockaddr_union is always clearedTimo Sirainen-0/+5
2018-03-12lib: net: Avoid comparing the content of unassigned IPs in net_ip_cmp().Stephan Bosch-3/+8
2018-01-01Updated copyright notices to include the year 2018.Stephan Bosch-1/+1
2017-11-10lib: fix illumos build issueJosef 'Jeff' Sipek-2/+2
2017-11-07lib: Remove net_transmit()Timo Sirainen-17/+0
2017-11-06lib: net_addr2ip() - Optimize for parsing IPv4 addressesTimo Sirainen-0/+38
2017-11-06lib: net_ip2addr() - Optimize by allocating destination memory immediatelyTimo Sirainen-3/+2
2017-10-30lib: Don't use NEEDS_LOCAL_CREDS undefinedMartti Rannanjärvi-1/+3
2017-10-05global: stop including fd-set-nonblock.h & fd-close-on-exec.h directlyJosef 'Jeff' Sipek-1/+0
2017-09-20global: start relying on i_close_fd(-1) being a no-opJosef 'Jeff' Sipek-1/+1
2017-09-19global: use i_rand_limit() and i_rand_minmax() when possibleJosef 'Jeff' Sipek-1/+1
2017-09-07global: Replace rand with i_randAki Tuomi-1/+1
2017-06-23global: Fixed missing or out-of-date copyright notices.Stephan Bosch-1/+1
2017-04-04lib: Increase net_connect*() EADDRNOTAVAIL retries to 20Timo Sirainen-1/+1
2016-12-24global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zer...Stephan Bosch-14/+14
2016-12-24global: Made all struct initialization using memset() use the same style.Stephan Bosch-3/+3
2016-12-16global: Change string position/length from unsigned int to size_tTimo Sirainen-1/+1
2016-11-15lib: Add net_ipport2strAki Tuomi-0/+12
2016-10-05lib: If connect() fails with EADDRNOTAVAIL, retry it 4 more times.Timo Sirainen-33/+35
2016-06-16lib: Created net_set_tcp_nodelay(), which enables the TCP_NODELAY socket option.Stephan Bosch-0/+7
2016-06-06global: Use only explicit int -> bool conversionsTimo Sirainen-2/+2
2016-06-06global: Require comparisons to be strict boolean expressionsTimo Sirainen-1/+1
2016-06-03lib: net_get_ip_any[46]() to struct net_ip[46]_anyMartti Rannanjärvi-10/+18
2016-05-30Use t_new in complicated t_malloc_no0 callsMartti Rannanjärvi-1/+1
2016-05-30Remove t_malloc in favour of t_malloc_no0Martti Rannanjärvi-1/+1
2016-05-26lib: Implemented net_set_send_buffer_size() and net_set_recv_buffer_size().Stephan Bosch-0/+24
2016-04-19Require IPv6 to buildMartti Rannanjärvi-102/+1
2016-01-29lib: Added net_str2hostport()Timo Sirainen-0/+36
2016-01-13global: freshen copyrightTimo Sirainen-1/+1
2016-01-04lib: Fixed assert-crash with net_is_in_network(family=ipv6, family=0, ..)Timo Sirainen-1/+1
2015-10-19lib: net_gethostbyname() now supports [ipv6] style bracketed addresses.Timo Sirainen-0/+9
2015-09-23Remove now-unnecessary direct stdlib.h #includes.Teemu Huovila-1/+0
2015-09-08Replaced unlink() calls with i_unlink*() wherever possible.Timo Sirainen-2/+1
2015-08-30Earlier in_port_t fix created problems with service listener configuration.Stephan Bosch-0/+13
2015-08-29Changed type of internet port values to in_port_t everywhere.Stephan Bosch-16/+29
2015-04-29lib: net_addr2ip() sets the family now only after address is successfully con...Timo Sirainen-3/+2
2015-01-05global: freshen copyrightPhil Carmody-1/+1
2014-10-08lib: Compiling fix for FreeBSDTimo Sirainen-3/+5
2014-10-04lib: Added support for connecting UDP sockets.Stephan Bosch-5/+12
2014-06-13lib: Changed net_geterror() to return errno instead of -1 if getsockopt() fails.Timo Sirainen-2/+6
2014-06-13lib: Added (void) prefixes to some setsockopt() calls which we don't care if ...Timo Sirainen-5/+5
2014-02-04Updated copyright notices to include year 2014.Timo Sirainen-1/+1
2014-01-30net_transmit() may have wrongly returned EPIPE error.Timo Sirainen-6/+6