1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-06-02 06:01:10 +00:00
Commit Graph

79 Commits

Author SHA1 Message Date
Philipp Schafft
4c8da7bdc4 Cleanup: Removed unused parts from net/ 2022-03-19 10:15:56 +00:00
Stephan Jauernick
617d219021 Fix: Fixed getaddrinfo detection for windows via ws2tcpip.h 2022-03-13 15:49:38 +00:00
Philipp Schafft
2b39d7f178 Fix: Corrected prototype for sock_get_server_socket() 2022-03-12 18:10:48 +00:00
Philipp Schafft
265f4eb61e Feature: Added a way to prefer IPv6 for binding sockets 2022-03-07 09:49:12 +00:00
Philipp Schafft
87ac18cd2c Update: Code style 2022-03-07 08:51:43 +00:00
Philipp Schafft
08443ca69e Feature: Allow testing for IPv4-mapped IPv6 mode 2022-03-07 08:40:21 +00:00
Philipp Schafft
88e5e66a2a Feature: Added support to query address family of a socket 2022-03-05 08:42:49 +00:00
Philipp Schafft
cf6797b68e Update: Fixed a warning 2022-03-05 08:42:14 +00:00
Philipp Schafft
d20ca18692 Update: Updated copyright statements 2019-04-28 09:40:47 +00:00
Marvin Scholz
b182f8df1b Fix Makefiles usage of deprecated INCLUDES variable 2015-11-28 13:21:03 +01:00
Thomas B. Ruecker
cf289788a3 Fix regression caused by penultimate commit
see 536582171d
2014-12-29 15:51:19 +00:00
Erik van Pienbroek
4ccfc5d998 Use WSA error codes when available
Signed-off-by: Thomas B. Ruecker <thomas@ruecker.fi>
2014-12-27 12:13:11 +00:00
Philipp Schafft
536582171d Prevent various redefined definitions in win32-specific code
From: Erik van Pienbroek <epienbro@fedoraproject.org>
Date: Mon, 22 Dec 2014 18:02:09 +0100
2014-12-24 11:40:30 +00:00
Thomas B. Ruecker
8685e6ed5a Explicitly license httpp log net thread and timing
This change was ACKd by all authors and explicitly states the license
to be LGPLv2 in all files to match COPYING. This removes ambiguity
when using these files e.g. as part of libshout.

For a list of authors, pease refer to the copyright headers of each
file.
2014-12-05 09:31:08 +00:00
Philipp Schafft
f476beb632 fixing some compiler warnings
svn path=/icecast/trunk/net/; revision=19282
2014-11-07 23:14:29 +00:00
Karl Heyes
6ddf620a21 bug+fix reported on icecast-dev (Petr Pisar, 06/07/2009). poll implementation
of sock_connected had incorrect return in failure case.

svn path=/icecast/trunk/net/; revision=16209
2009-07-06 14:28:16 +00:00
Karl Heyes
65eb342fd8 non-blocking setting on win32 broke with previous patch. Add optional xml setting for
specifying the TCP send buffer size, it seems that on at least some win32 systems,
the window size stays at 8k (even with registry settings) which could limit available
streaming bandwidth.

svn path=/icecast/trunk/net/; revision=15766
2009-03-14 16:05:12 +00:00
Karl Heyes
a80483333d avoid SOCK_NONBLOCK name clash with recent glibc. Add support for optional
bind parameter to connect_wto call. Some small compiler cleanups.

svn path=/icecast/trunk/net/; revision=15611
2009-01-08 02:47:44 +00:00
Karl Heyes
ce28de7894 build fix for older setups with IPv6
svn path=/icecast/trunk/net/; revision=14545
2008-02-28 02:16:23 +00:00
Karl Heyes
81ca1569fa Use poll if available, select can cause stack corruption if descriptor value is over 1024
svn path=/icecast/trunk/net/; revision=14457
2008-02-05 04:21:12 +00:00
Karl Heyes
5c1bdc9705 drop const usage and work around a FBSD issue with listening sockets
svn path=/icecast/trunk/net/; revision=14319
2007-12-20 16:49:02 +00:00
Karl Heyes
4d379b74b1 clean up prototypes and sock_t handling, for win32 mainly, no functional change
svn path=/icecast/trunk/net/; revision=14041
2007-10-24 21:42:01 +00:00
Karl Heyes
0bbed6c78d added function to check whether the socket is still alive
svn path=/icecast/trunk/net/; revision=13582
2007-08-21 22:17:13 +00:00
Karl Heyes
ef2a81e8ed minor build update
svn path=/icecast/trunk/net/; revision=13501
2007-08-09 23:51:26 +00:00
Karl Heyes
5c2887a2a1 update to server side socket creation. Where IPv6-aware functions are available,
use them to create dual IPv4/6 capable sockets.


svn path=/icecast/trunk/net/; revision=13491
2007-08-09 03:19:24 +00:00
oddsock
7cd4e78bd8 os.h doesn't exist anymore, use compat.h.
svn path=/icecast/trunk/net/; revision=10949
2006-02-24 04:37:22 +00:00
Karl Heyes
5ec3665f1a merged from kh branch, allow for handling the vsnprintf return code better
on older systems.

svn path=/icecast/trunk/net/; revision=7917
2004-10-06 14:07:55 +00:00
Karl Heyes
265752a303 make sure sock_connected does not block with timeout 0, use -1
for that, also handle the sock_connected return values properly
in the case of timeout.

svn path=/icecast/trunk/net/; revision=7349
2004-07-26 16:03:52 +00:00
brendan
9f9c163bb2 Move .cvsignore into svn:ignore
svn path=/icecast/trunk/avl/; revision=7021
2004-07-06 19:22:26 +00:00
Karl Heyes
7bd73dfa33 handle error condition at connection
svn path=/trunk/net/; revision=5833
2004-02-17 14:17:57 +00:00
Karl Heyes
5f34462604 a few cleanups and a fix for async connects
svn path=/trunk/net/; revision=5821
2004-02-12 21:28:35 +00:00
brendan
5a30452547 Leigh Smith's MINGW32 compatibility patch, with modifications for better
autoconf feng shui

svn path=/trunk/net/; revision=5490
2003-10-20 03:08:46 +00:00
brendan
d495a6d185 Assign LGPL to files (as implied by COPYING)
svn path=/trunk/net/; revision=5137
2003-07-14 02:14:59 +00:00
oddsock
92e633e11b more portable va_copy for win32
svn path=/trunk/net/; revision=5098
2003-07-08 02:39:33 +00:00
brendan
e2272351a3 va_copy is undefined on windows
svn path=/trunk/net/; revision=5092
2003-07-07 21:33:58 +00:00
brendan
4a83cc46cd net gets the namespace deep cleansing treatment.
I suspect all this may be unnecessary, only because I've never heard of this
before. But then, I don't do much library work, and better safe than sorry.

svn path=/trunk/net/; revision=5083
2003-07-07 01:32:42 +00:00
brendan
11fbb2eb0c Get everthing in make dist, and remove bitkeeper cruft
svn path=/trunk/avl/; revision=5050
2003-07-03 12:59:06 +00:00
Karl Heyes
a01b835e1d this was never used and it's handled elsewhere anyway
svn path=/trunk/net/; revision=5042
2003-07-02 21:29:08 +00:00
brendan
11498d9569 finish what we started re: resolver
svn path=/trunk/net/; revision=5026
2003-07-01 18:49:07 +00:00
Karl Heyes
6ce5ec2b0d remove file descriptor leak when IPv6 is being used.
svn path=/trunk/net/; revision=4960
2003-06-18 11:05:49 +00:00
Karl Heyes
4ef26ef74e Lets put this in the right place.
svn path=/trunk/net/; revision=4889
2003-06-06 11:19:50 +00:00
Karl Heyes
08bf02cf67 Another net change, making it more bullet-proof, before could silently miss
data. so now we allocate enough space for the write to succeed fully.

svn path=/trunk/net/; revision=4888
2003-06-06 00:05:19 +00:00
brendan
eb5afc0cfb whoops
svn path=/trunk/net/; revision=4887
2003-06-05 19:18:00 +00:00
brendan
0fdc54b774 Karl's sys/select.h patch for fbsd. It must be under another std include on
OS X for some reason.

svn path=/trunk/net/; revision=4886
2003-06-05 19:02:36 +00:00
brendan
ced88f98a8 Karl's patch for freebsd, minus the sys/select.h test which breaks on OS X.
Also enables IPV6 in libshout!

svn path=/trunk/httpp/; revision=4884
2003-06-05 17:09:12 +00:00
brendan
a9419adb1a Karl's patch for a namespace collision he reports on some BSD systems.
svn path=/trunk/net/; revision=4861
2003-06-03 18:29:23 +00:00
Michael Smith
09aa3b40db Fix some function comments, sock_write_string() and sock_write may NOT be
called with a non-blocking socket

svn path=/trunk/net/; revision=4845
2003-05-29 12:18:04 +00:00
Michael Smith
71ba9e88d6 Don't pass 0x1 as a pointer to a syscall. oops.
svn path=/trunk/net/; revision=4593
2003-04-08 12:09:57 +00:00
Karl Heyes
1ff64d456e better fix for cases with missing inet_aton
svn path=/trunk/net/; revision=4500
2003-03-17 16:47:20 +00:00
Michael Smith
d0cf9fe000 Brendan was getting pissed off about inconsistent indentation styles.
Convert all tabs to 4 spaces. All code must now use 4 space indents.

svn path=/trunk/avl/; revision=4492
2003-03-15 02:10:19 +00:00