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
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
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
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
Karl Heyes
2116bd0d5e
include the automake config.h file if the application defines one
...
svn path=/trunk/avl/; revision=4450
2003-03-08 16:05:38 +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
de873ff693
Fix formatting of ip addresses so that v6 sockets are logged correctly.
...
svn path=/trunk/net/; revision=4345
2003-02-14 11:14:55 +00:00
Michael Smith
66757da884
Remove comment added earlier - that version of the function is only there
...
for backwards compatibility, and isn't MEANT to do ipv6. Oops.
svn path=/trunk/net/; revision=4343
2003-02-13 11:51:35 +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
ca71d4dea7
Increase ip buffer sizes so that ipv6 has a better chance of working.
...
svn path=/trunk/net/; revision=4339
2003-02-12 10:58:17 +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
brendan
251640060b
We weren't actually using poll at all, we were just including the header.
...
For portability, remove the header and the check in configure.in
svn path=/trunk/net/; revision=4283
2003-01-21 06:45:43 +00:00
Michael Smith
6780ececbc
Bah. That'll teach me to trust the manpage... let's try something which might
...
be marginally more portable.
svn path=/trunk/net/; revision=4279
2003-01-19 02:46:06 +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
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
Michael Smith
a2d5cbd219
Config fixes for when parsing fails
...
Don't needlessly call getsockopt() all the time (it's a system call, hence
expensive)
svn path=/trunk/net/; revision=3735
2002-07-31 15:00:12 +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
c8b2e41e67
Fix comments (and remove old commented out code) from sock_write_bytes.
...
svn path=/trunk/net/; revision=3176
2002-03-22 21:24:57 +00:00
Jack Moffitt
45c5df41f9
Add error == 0 to recoverable error numbers. Patch from Ricardo Galli.
...
Minor style fixes.
svn path=/trunk/net/; revision=3174
2002-03-22 21:09:36 +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