1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-06-16 06:15:24 +00:00
Commit Graph

30 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
265f4eb61e Feature: Added a way to prefer IPv6 for binding sockets 2022-03-07 09:49:12 +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
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
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
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
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
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
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
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
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
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
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
c54d71e63b Implement listing of all currently connected clients on a mountpoint
svn path=/trunk/net/; revision=4434
2003-03-07 14:57:36 +00:00
Michael Smith
38ab54d207 Better IPv6 support. Hopefully logging will work correctly now.
However, some things still won't work, notably relaying (the relay can be
ipv6, the server being relayed _from_ may not be).
I'll fix that some time soon.

svn path=/trunk/net/; revision=4342
2003-02-13 11:29:07 +00:00
Michael Smith
c32404d742 Lots of fixes for screwy code formatting, plus:
make streams public by default, send ice-private: 1 to make them private.
However, default config file has yp servers commented out.

A little fix for compilation on some solaris systems

Redo some config file stuff: now all the passwords are inside an element
<authentication>, (though for now they're also accepted in the old location),
and added admin username and password. Move some of the admin activities over
to using the admin passwords (admin action that affect a mountpoint use the
source password)

Fill in some (but not yet all, maybe i'll do that later) of the infrastructure
for per-mountpoint passwords.

Fix lots of headers/code so that it works properly/portably  on non-win32
systems.

svn path=/trunk/net/; revision=4325
2003-02-06 13:10:48 +00:00
Michael Smith
6bc46604b9 Set TCP_NODELAY on sockets for streams and fileserving.
Adapted from a patch sent by Richard Galli

svn path=/trunk/net/; revision=4260
2003-01-18 07:08:00 +00:00
Michael Smith
524480687e Fix compilation errors on non-windows platforms.
svn path=/trunk/net/; revision=4133
2002-12-01 02:11:07 +00:00
oddsock
dd6dba9d4e win32 port updates to recent changes
svn path=/trunk/net/; revision=4117
2002-11-23 15:55:27 +00:00
Michael Smith
614bf95a68 Fix a compile error.
svn path=/trunk/net/; revision=4115
2002-11-22 13:13:04 +00:00
Michael Smith
29cf9fe727 Karl Heyes: patches for better networking code. IPv6 support (complete? Not
sure).

svn path=/trunk/net/; revision=4114
2002-11-22 13:02:51 +00:00
Jack Moffitt
366d560cde Ricardo Galli found this too. We weren't setting no linger and keepalive
as we used to in icecast1.  They make things work a bit better.

svn path=/trunk/net/; revision=3177
2002-03-22 21:44:29 +00:00
Jack Moffitt
c334915e67 minor build fixes for win32 courtesy of Oddsock
svn path=/trunk/net/; revision=3029
2002-02-07 01:04:09 +00:00
Jack Moffitt
315259ae9f Win32 updates. Mostly header fixes and defines for windows. Apparently
interface is a reserved word, so we've renamed one variable.  There's
also no sethostent on win32, and Oddsock seems to think we need
DeleteCriticalSection instead of DestroyCriticalSection.  I was unable
to figure out from msdn.microsoft.com why this was, but I'll trust
Oddsock's judgement.

svn path=/trunk/net/; revision=2194
2001-10-20 05:57:28 +00:00
Jack Moffitt
a8824b7f95 Initial revision
svn path=/trunk/avl/; revision=1997
2001-09-10 02:24:39 +00:00