niffiwan
01629bd946
Redo 9903 - this is a more robust solution
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9905 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-07 20:02:32 +10:00
niffiwan
7348b9b08d
remove gcc warnings [-Wunused-but-set-variable] in network/psnet2.cpp
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9904 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-07 20:02:32 +10:00
niffiwan
2fe56e6780
Coverity 1093639: fix out of bounds access (ip_addr.sin_addr with proto TCP)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9903 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-07 20:02:31 +10:00
Goober5000
4bd10888ff
make localization more robust with additional checks on string length, more consting, and stronger typing and make XSTR const, since we don't want to modify the strings it translates and then CONST ALL THE THINGS
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9809 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-26 18:51:34 +10:00
Goober5000
a916633b46
onlyjob's spelling fixes, per Mantis #2777
2013-01-13 09:50:08 +00:00
karajorma
893701d0b7
This might or might not help with Mantis 1841. Either way Assertion > Int3() anyway.
2012-11-28 09:18:23 +00:00
Echelon9
40983c4f40
GCC warning: variable set but not used
2012-06-17 13:32:04 +00:00
Echelon9
19ae6528e0
Cases of commented out Int3() indicate areas of old, redundant code.
2011-11-17 11:07:53 +00:00
Echelon9
6de5b02e77
Documentation: Code clean up of psnet2.cpp
2011-09-07 12:28:18 +00:00
Echelon9
9086c95131
PVS-Studio fix (courtesy of niffiwan): V512 A call of the 'memcpy' function will lead to underflow of the buffer (psnet2.cpp)
2011-09-07 11:58:47 +00:00
Zacam
c946bc4a45
PVS-Studio fix (courtesy of niffiwan): V512 - A call of the 'memcpy' function will lead to overflow of the buffer '& ip_addr.sin_addr'.
2011-09-07 10:00:03 +00:00
Echelon9
4201582786
Let's have another go at this one... around we go again
2011-09-01 13:08:32 +00:00
Echelon9
3063b2cd85
Undo my rather silly patch, apply niffiwan's patch as a temporary measure (at least).
2011-08-31 13:48:23 +00:00
Echelon9
9be05a4d7f
PVS-Studio fix: V523 The 'then' statement is equivalent to the 'else' statement (psnet2.cpp).
...
This one was particular bad as it code have lead to remotely induced crashes over the network with oversize packets.
2011-08-31 13:12:46 +00:00
The_E
0525e871d0
PVS Studio related: Mark false alarms as such.
2011-08-30 17:46:49 +00:00
Zacam
9254dae233
Resolves LNK4221 under MSVC. multi_oo and psnet are not actually linked/used, so references pointing to them now go to multi_obj and psnet2 respectively. (Same as Antipodes 6881)
...
http://www.hard-light.net/forums/index.php?topic=73147.0
2011-01-30 05:59:36 +00:00
portej05
98f337f701
safe_strings - from Antipodes build #1
2009-07-27 16:06:24 +00:00
portej05
719825f80d
The big CVS comment removal. This chops approx. 3.5mb off a full checkout.
...
I've tested this through compiling and through hand checking.
Normalises line endings in ALL files to \n.
2009-06-20 08:08:20 +00:00
karajorma
8bdc2c1a9f
Portej05's second set of preFAST fixes.
2009-05-24 21:38:22 +00:00
taylor
966ec358e9
fix bogus ml_printf strings
...
use ml_string over ml_printf where possible
remove newlines from ml_* calls, since it gets added already
2008-10-23 13:26:35 +00:00
taylor
fcb28b51f1
better error handling for when TCP socket is already in use (Mantis #1626 )
...
fix missing protocol XSTR that used the wrong tstring for display
2008-10-05 01:17:45 +00:00
taylor
f89a173548
we do actually pass invalid socket ids during init stuff so don't complain about such things in the log
2008-03-20 18:11:52 +00:00
taylor
c5235c6428
FS2NetD v.2 (still a work in progress, but is ~98% complete)
2007-10-15 06:43:23 +00:00
taylor
a0d3cf64d0
add custom IP option to maybe help get around NAT issues (I haven't heard whether this actually works or not yet though, but it's been out for testing all week)
2006-08-19 04:28:22 +00:00
taylor
09c9a73ca9
try to allow RAS VPN connects since they probably aren't dial-up and shouldn't be seen as such
2006-06-12 03:38:15 +00:00
taylor
d3481714d0
remove NO_NETWORK
2005-10-10 17:21:11 +00:00
taylor
af1df76849
merge of OSX tree
...
a lot of byte swaps were still missing, will hopefully be fully network compatible now
2005-09-05 09:38:19 +00:00
Goober5000
2394e9801b
remove PreProcDefine #includes in FS2
...
--Goober5000
2005-07-13 03:35:36 +00:00
taylor
92b8c2d6ed
various compiler warning fixes (some of these from dizzy)
2005-07-07 16:36:58 +00:00
taylor
3f6e13d20b
use vm_malloc(), vm_free(), vm_realloc(), vm_strdup() rather than system named macros
...
fixes various problems and is past time to make the switch
2005-05-12 17:49:18 +00:00
taylor
476a96e47e
(re)move some uneeded variables to fix compiler warnings
2005-03-24 23:29:33 +00:00
taylor
3f9ffbc393
better support for Inferno builds (in PreProcDefines.h now, no networking support)
...
make sure NO_NETWORK builds are as friendly on Windows as it is on Linux/OSX
revert a timeout in Client.h back to the original value before Linux merge
2005-03-02 21:18:20 +00:00
taylor
09167fa382
merge with Linux/OSX tree - p0204-2
2005-02-04 20:06:10 +00:00
Kazan
864e1b5922
remove MCD complete
2004-07-26 20:47:56 +00:00
Kazan
428b3dcbc9
MCD - define _MCD_CHECK to use memory tracking
2004-07-12 16:33:09 +00:00
Goober5000
4b7700f317
commented out an unneeded variable (int ret) in psnet_socket_options
2002-12-02 23:18:53 +00:00
penguin
0c503be8d1
The big include file move
2002-08-01 01:41:11 +00:00
unknownplayer
d8c81cd2a3
Started work on DX8.1 implementation. Updated the project files to encompass
...
the new files. Disable the compiler tag to use old DX code (THERE IS NO
NEW CODE YET!)
2002-07-30 14:29:15 +00:00
penguin
72db48921a
Linux port -- added NO_STANDALONE ifdefs
2002-07-22 01:22:26 +00:00
penguin
8f92eebd34
Warpcore CVS sync
2002-06-03 04:10:40 +00:00
penguin
663b3471b9
Volition sources -- warpcore CVS import
2002-06-03 03:26:03 +00:00