Bill Currie
300badc96a
Fix a couple of windows build issues
...
There's still the problem with unused variables when building for
windows because of vulkan debug stuff, but this fixes the important
errors. It actually still works (at least under wine).
2023-07-06 02:04:47 +09:00
Bill Currie
9d1c07d2ac
Fix a few strict aliasing warnings
...
gcc 13 got a little stricter on those (at least with gnu2x/c2x).
2023-06-13 18:13:54 +09:00
Bill Currie
dbd3d6502a
Nuke qboolean from orbit
...
I never liked it, but with C2x coming out, it's best to handle bools
properly. I haven't gone through all the uses of int as bool (I'll leave
that for fixing when I encounter them), but this gets QF working with
both c2x (really, gnu2x because of raw strings).
2023-06-13 18:06:11 +09:00
Bill Currie
a9bd436837
[build] Autoconfiscate printf format attribute
...
I don't know if gnu_printf is appropriate for all cases, but it is
needed for mingw32.
2021-03-27 19:52:59 +09:00
Bill Currie
c376ac1ebd
Add some #define magic for SOL_IP on BSD-based stacks.
2013-01-29 12:13:59 +09:00
Bill Currie
23a38738fc
Massive whitespace cleanup.
...
Lots of trailing whitespace and otherwise blank lines.
2012-05-22 08:23:22 +09:00
Bill Currie
bc1b483525
Nuke the rcsid stuff.
...
It's pretty useless in git.
2012-04-22 10:56:32 +09:00
Bill Currie
6716b2e8ab
Add some disabled test code for interface access.
...
As part of the work on getting nq to work on multi-homed nodes, I used the
existing recvmsg code in qw-master to check how things work. I figured it
might be worth keeping.
2011-08-06 17:25:31 +09:00
Bill Currie
de04e1b602
Lots of win32 (mingw cross) build fixes.
...
HTTP (curl) support is missing, but everything else builds.
2010-12-23 11:40:16 +09:00
Bill Currie
3fb03fc2be
hah, should have been using __attribute__((used)) all that time (rather
...
than __attribute__((unused))). fixes the missing console in -x11
2005-08-04 15:27:09 +00:00
Bill Currie
1033f7e322
move qw/include/protocol.h to include/qw/protocol.h making life easier
...
qtv can now connect to a server (won't stay connected though)
2004-02-21 02:31:22 +00:00
Bill Currie
ada828bdc9
remove a whole swath of potential buffer overflows by removing the buffer.
...
Also audit a few of the "FIXME: overflow" tags
2003-08-05 01:45:52 +00:00
Bill Currie
4f66e1e9da
fix a bunch of the previous FIXMEs. needs a bit more work for win32
...
compiling
2003-07-08 22:39:45 +00:00
Bill Currie
dddf045221
put "FIXME: overflow" on all the char arrays I could find that weren't
...
obviously safe
2003-07-08 20:11:10 +00:00
Bill Currie
c903cfdb78
still more inline guff
2003-05-07 05:41:46 +00:00
Ragnvald Maartmann-Moe IV
5fb8aa07f3
Code style, people. Love it or leave it!
2003-03-21 21:25:44 +00:00
Bill Currie
92fc8109e6
change the master timeout to 10 minutes. 5 is too tight as that's the
...
heartbeat time on a server
2003-01-31 04:56:11 +00:00
Bill Currie
bf3da64c43
flush the output each log call
2003-01-31 04:49:31 +00:00
Bill Currie
cd553342e6
give qw-master timestamped logging
2003-01-31 04:11:06 +00:00
Bill Currie
761a7546dd
re-arrange things so __attribute__ and __builtin_expect are properly
...
autoconfiscated so rcsid will continue to work with gcc 3.3
2003-01-15 15:31:36 +00:00
Bill Currie
71196fedf6
make gcc more anal about prototypes, string constants and function
...
visibility (ie, global functions must have a prototype)
2003-01-06 18:28:13 +00:00
Bill Currie
d02d502d30
check for socklen_t evailability
2002-12-20 23:53:34 +00:00
Bill Currie
9f7c669370
various win32 compile fixes for the latest mingw (not fully working due to
...
LPCWAVEFORMATEX)
2002-10-11 20:47:17 +00:00
Bill Currie
b5783866ad
fix model_t issues for solaris (now that I know which headers cause the
...
problem...:)
2002-08-09 02:44:23 +00:00
Bill Currie
c23a74ecd9
fix the recvfrom address size
2002-06-12 20:26:30 +00:00
Bill Currie
6240c62cec
this should fix the problems with building the master server on bsd systems
2002-05-13 21:53:52 +00:00
Bill Currie
c04785fe0f
move sys/types.h
2002-05-10 18:39:59 +00:00
Bill Currie
ed0342e996
clean up the mess of {send,recv}msg vs {sendto,recvfrom}
2002-04-15 19:06:25 +00:00
Bill Currie
4ac2fc0a52
add the -b dotted.quad option so qw-master can bind to a specific address.
...
Useful on multi-homed machines where either you want qw-master to listen on
only one address or your operating system is lame.
While (currently) ugly, compiles for win32 again.
2002-04-15 18:13:17 +00:00
Bill Currie
9fa9f6af52
need to explicitly include sys/uio.h on older libc
2002-04-15 14:35:10 +00:00
Bill Currie
599e0f4b0a
make sure reply packets go out the same interface they cam in on.
...
This breaks win32 builds :/
2002-04-14 03:44:16 +00:00
Bill Currie
234305f0ab
make sure networking is initialized before doing /anything/. this should
...
fix the host lookup failurs for win32 when using -f.
2002-02-13 17:58:30 +00:00
Bill Currie
b4000200e3
move the getopt files from qfcc/source to libs/util, link qw-master against
...
libQFutil and enable the option parsting in qw-master for win32.
2002-02-12 17:44:41 +00:00
Bill Currie
a9547414f3
compile fixes for win32
2002-02-12 04:17:31 +00:00
Bill Currie
6f7b3fa0ef
more magic number nukage and add a couple comments
2002-02-11 21:28:18 +00:00
Bill Currie
7c0d8f2345
remove some evile magic numbers
2002-02-11 21:23:28 +00:00
Bill Currie
6c6b8ca4c3
at rxr's request, allow the master server to read in a static list of
...
servers (qw-master -f servers.txt). These servers can not be removed from
the master server without editing the file and restarting the server. The
format of the server list file is a simple line-by-line list of the servers'
addresses and their port (optional: defaults to 27500):
servername([ :]port)?
one per line.
2002-02-11 20:50:54 +00:00
Bill Currie
2e97cfddac
freebsd compile fix
2001-11-20 06:27:48 +00:00
Bill Currie
cc89fb23c8
fix for win32 (need to init winsock)
2001-10-21 00:48:38 +00:00
Adam Olsen
f779a03254
- hopefully a fix for master's socket errors on windows
...
- start of static server support
2001-10-20 08:20:27 +00:00
Bill Currie
b1f4a778f9
the rcsid commit from hell }:>
2001-09-28 06:26:31 +00:00
Bill Currie
06da30ac89
mingw build fixes again (including mostly working in sid: got some link issues)
2001-09-25 06:18:30 +00:00
Adam Olsen
ce7e6ac4a5
idontthinkimobsessivedoyouthinkimobsessive?
2001-09-18 08:58:51 +00:00
Adam Olsen
f2cf4388d9
- improvements of how message contents are printed, which is #if 0'd
...
anyway :)
2001-09-18 07:26:12 +00:00
Adam Olsen
e3bf60bda3
- fix the parsing of player numbers. oops :)
2001-09-18 07:00:41 +00:00
Adam Olsen
915674733c
- much formatting cleanups
...
- made it use #if HAVE_FOO_H like the rest of QF
- a couple bug fixes
- cleaned up what it prints, including adding sequence numbers and
player counts in the heartbeats
2001-09-18 06:47:02 +00:00
Bill Currie
8b8ce51085
GameSpy, eat your heart out :) (thanks, James)
2001-09-18 03:24:26 +00:00